From cc6bcb548d67a5a0a7223d81bd43c299312320c8 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 11 Jun 2018 12:14:34 -0600 Subject: 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 * 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 * target.c: Update. --- gdb/nto-procfs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/nto-procfs.c') diff --git a/gdb/nto-procfs.c b/gdb/nto-procfs.c index 53797c8..d140068 100644 --- a/gdb/nto-procfs.c +++ b/gdb/nto-procfs.c @@ -296,7 +296,7 @@ procfs_set_thread (ptid_t ptid) { pid_t tid; - tid = ptid_get_tid (ptid); + tid = ptid.tid (); devctl (ctl_fd, DCMD_PROC_CURTHREAD, &tid, sizeof (tid), 0); } @@ -310,7 +310,7 @@ nto_procfs_target::thread_alive (ptid_t ptid) procfs_status status; int err; - tid = ptid_get_tid (ptid); + tid = ptid.tid (); pid = ptid.pid (); if (kill (pid, 0) == -1) @@ -1469,7 +1469,7 @@ nto_procfs_target::pid_to_str (ptid_t ptid) struct tidinfo *tip; pid = ptid.pid (); - tid = ptid_get_tid (ptid); + tid = ptid.tid (); n = snprintf (buf, 1023, "process %d", pid); -- cgit v1.1