mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 09:14:14 +08:00
Change get_ada_task_ptid parameter type
get_ada_task_ptid currently takes a 'long' as its 'thread' parameter type. However, on some platforms this is actually a pointer, and using 'long' can sometimes end up with the value being sign-extended. This sign extension can cause problems later, if the tid is then later used as an address again. This patch changes the parameter type to ULONGEST and updates all the uses. This approach preserves sign extension on the targets where it is apparently intended, while avoiding it on others. Co-Authored-By: John Baldwin <jhb@FreeBSD.org>
This commit is contained in:
@ -111,7 +111,7 @@ class darwin_nat_target : public inf_child_target
|
||||
|
||||
bool supports_multi_process () override;
|
||||
|
||||
ptid_t get_ada_task_ptid (long lwp, long thread) override;
|
||||
ptid_t get_ada_task_ptid (long lwp, ULONGEST thread) override;
|
||||
|
||||
private:
|
||||
ptid_t wait_1 (ptid_t, struct target_waitstatus *);
|
||||
|
Reference in New Issue
Block a user