forked from Imagelibrary/binutils-gdb
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:
@@ -600,7 +600,7 @@ ada_get_tcb_types_info (void)
|
||||
static ptid_t
|
||||
ptid_from_atcb_common (struct value *common_value)
|
||||
{
|
||||
long thread = 0;
|
||||
ULONGEST thread;
|
||||
CORE_ADDR lwp = 0;
|
||||
struct value *ll_value;
|
||||
ptid_t ptid;
|
||||
|
||||
Reference in New Issue
Block a user