forked from Imagelibrary/binutils-gdb
Remove ptid_get_tid
This removes ptid_get_tid in favor of calling the ptid_t::tid method. gdb/ChangeLog 2018-07-03 Tom Tromey <tom@tromey.com> * common/ptid.c (ptid_get_tid): Remove. * common/ptid.h (ptid_get_tid): Don't declare. * ada-tasks.c: Update. * aix-thread.c: Update. * bsd-uthread.c: Update. * darwin-nat.c: Update. * fbsd-nat.c: Update. * i386-darwin-nat.c: Update. * infrun.c: Update. * linux-tdep.c: Update. * nto-procfs.c: Update. * ppc-ravenscar-thread.c: Update. * python/py-infthread.c: Update. * ravenscar-thread.c: Update. * sol-thread.c: Update. * sparc-ravenscar-thread.c: Update. * windows-nat.c: Update. gdb/gdbserver/ChangeLog 2018-07-03 Tom Tromey <tom@tromey.com> * target.c: Update.
This commit is contained in:
@@ -318,9 +318,9 @@ target_pid_to_str (ptid_t ptid)
|
||||
xsnprintf (buf, sizeof (buf), "<all threads>");
|
||||
else if (ptid_equal (ptid, null_ptid))
|
||||
xsnprintf (buf, sizeof (buf), "<null thread>");
|
||||
else if (ptid_get_tid (ptid) != 0)
|
||||
else if (ptid.tid () != 0)
|
||||
xsnprintf (buf, sizeof (buf), "Thread %d.0x%lx",
|
||||
ptid.pid (), ptid_get_tid (ptid));
|
||||
ptid.pid (), ptid.tid ());
|
||||
else if (ptid.lwp () != 0)
|
||||
xsnprintf (buf, sizeof (buf), "LWP %d.%ld",
|
||||
ptid.pid (), ptid.lwp ());
|
||||
|
||||
Reference in New Issue
Block a user