Change ptid_t::tid to ULONGEST
authorTom Tromey <tromey@adacore.com>
Thu, 16 Sep 2021 19:55:04 +0000 (13:55 -0600)
committerTom Tromey <tromey@adacore.com>
Thu, 23 Sep 2021 15:30:54 +0000 (09:30 -0600)
commit96bbe3ef9653e23a17b2315627e0cab441815f2d
treecf9ac694a99f0ae9755d3229767a905476a69c00
parent184ea2f7316c54dd5e0fa84f1fe07a222e8fb44c
Change ptid_t::tid to ULONGEST

The ptid_t 'tid' member is normally used as an address in gdb -- both
bsd-uthread and ravenscar-thread use it this way.  However, because
the type is 'long', this can cause problems with sign extension.

This patch changes the type to ULONGEST to ensure that sign extension
does not occur.
gdb/ada-tasks.c
gdb/bsd-uthread.c
gdb/infrun.c
gdb/python/py-infthread.c
gdb/ravenscar-thread.c
gdb/remote.c
gdbserver/target.cc
gdbsupport/ptid.cc
gdbsupport/ptid.h