diff options
Diffstat (limited to 'gdb/linux-tdep.c')
-rw-r--r-- | gdb/linux-tdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/linux-tdep.c b/gdb/linux-tdep.c index da8a1f0..12455a7 100644 --- a/gdb/linux-tdep.c +++ b/gdb/linux-tdep.c @@ -419,9 +419,9 @@ linux_core_pid_to_str (struct gdbarch *gdbarch, ptid_t ptid) { static char buf[80]; - if (ptid_get_lwp (ptid) != 0) + if (ptid.lwp () != 0) { - snprintf (buf, sizeof (buf), "LWP %ld", ptid_get_lwp (ptid)); + snprintf (buf, sizeof (buf), "LWP %ld", ptid.lwp ()); return buf; } @@ -1632,7 +1632,7 @@ linux_collect_thread_registers (const struct regcache *regcache, data.abort_iteration = 0; /* For remote targets the LWP may not be available, so use the TID. */ - data.lwp = ptid_get_lwp (ptid); + data.lwp = ptid.lwp (); if (!data.lwp) data.lwp = ptid_get_tid (ptid); |