aboutsummaryrefslogtreecommitdiff
path: root/gdb/nat/linux-procfs.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-06-11 12:20:11 -0600
committerTom Tromey <tom@tromey.com>2018-07-03 11:36:45 -0600
commit15a9e13e521ec3acb4bd3616f349b9d19780cd48 (patch)
treea5116c4d4fd14d48d1a8405a6338b592065187ea /gdb/nat/linux-procfs.c
parent0e998d966be13e548721109a4e44b2887fc5cb24 (diff)
downloadbinutils-15a9e13e521ec3acb4bd3616f349b9d19780cd48.zip
binutils-15a9e13e521ec3acb4bd3616f349b9d19780cd48.tar.gz
binutils-15a9e13e521ec3acb4bd3616f349b9d19780cd48.tar.bz2
Remove ptid_lwp_p
This removes ptid_lwp_p in favor of the ptid_t::lwp_p method. gdb/ChangeLog 2018-07-03 Tom Tromey <tom@tromey.com> * common/ptid.c (ptid_lwp_p): Remove. * common/ptid.h (ptid_lwp_p): Don't declare. * fbsd-nat.c: Update. * linux-nat.c: Update. * nat/linux-procfs.c: Update. * nat/x86-linux-dregs.c: Update. * sol-thread.c: Update.
Diffstat (limited to 'gdb/nat/linux-procfs.c')
-rw-r--r--gdb/nat/linux-procfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/nat/linux-procfs.c b/gdb/nat/linux-procfs.c
index 20708fa..1c236c5 100644
--- a/gdb/nat/linux-procfs.c
+++ b/gdb/nat/linux-procfs.c
@@ -240,7 +240,7 @@ linux_proc_tid_get_name (ptid_t ptid)
char comm_path[100];
const char *comm_val;
pid_t pid = ptid.pid ();
- pid_t tid = ptid_lwp_p (ptid) ? ptid.lwp () : ptid.pid ();
+ pid_t tid = ptid.lwp_p () ? ptid.lwp () : ptid.pid ();
xsnprintf (comm_path, sizeof (comm_path),
"/proc/%ld/task/%ld/comm", (long) pid, (long) tid);