diff options
author | Tom Tromey <tom@tromey.com> | 2018-06-11 12:14:34 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-07-03 11:36:44 -0600 |
commit | cc6bcb548d67a5a0a7223d81bd43c299312320c8 (patch) | |
tree | 205be2c55d1a8f204d8e7d0b3d14a69b2253f0b1 /gdb/infrun.c | |
parent | e38504b39279fa86cbb2c4a45ab8ec34e3aef90b (diff) | |
download | gdb-cc6bcb548d67a5a0a7223d81bd43c299312320c8.zip gdb-cc6bcb548d67a5a0a7223d81bd43c299312320c8.tar.gz gdb-cc6bcb548d67a5a0a7223d81bd43c299312320c8.tar.bz2 |
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.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index b3a6a38..91c7d1e 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -3424,14 +3424,14 @@ print_target_wait_results (ptid_t waiton_ptid, ptid_t result_ptid, stb.printf ("infrun: target_wait (%d.%ld.%ld", waiton_ptid.pid (), waiton_ptid.lwp (), - ptid_get_tid (waiton_ptid)); + waiton_ptid.tid ()); if (waiton_ptid.pid () != -1) stb.printf (" [%s]", target_pid_to_str (waiton_ptid)); stb.printf (", status) =\n"); stb.printf ("infrun: %d.%ld.%ld [%s],\n", result_ptid.pid (), result_ptid.lwp (), - ptid_get_tid (result_ptid), + result_ptid.tid (), target_pid_to_str (result_ptid)); stb.printf ("infrun: %s\n", status_string.c_str ()); @@ -4378,7 +4378,7 @@ save_waitstatus (struct thread_info *tp, struct target_waitstatus *ws) statstr.c_str (), tp->ptid.pid (), tp->ptid.lwp (), - ptid_get_tid (tp->ptid)); + tp->ptid.tid ()); } /* Record for later. */ @@ -4615,7 +4615,7 @@ stop_all_threads (void) statstr.c_str (), t->ptid.pid (), t->ptid.lwp (), - ptid_get_tid (t->ptid)); + t->ptid.tid ()); } /* Record for later. */ |