aboutsummaryrefslogtreecommitdiff
path: root/gdb/fbsd-nat.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/fbsd-nat.c
parent0e998d966be13e548721109a4e44b2887fc5cb24 (diff)
downloadgdb-15a9e13e521ec3acb4bd3616f349b9d19780cd48.zip
gdb-15a9e13e521ec3acb4bd3616f349b9d19780cd48.tar.gz
gdb-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/fbsd-nat.c')
-rw-r--r--gdb/fbsd-nat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/fbsd-nat.c b/gdb/fbsd-nat.c
index 474d6ae..4967dcb 100644
--- a/gdb/fbsd-nat.c
+++ b/gdb/fbsd-nat.c
@@ -810,7 +810,7 @@ show_fbsd_nat_debug (struct ui_file *file, int from_tty,
bool
fbsd_nat_target::thread_alive (ptid_t ptid)
{
- if (ptid_lwp_p (ptid))
+ if (ptid.lwp_p ())
{
struct ptrace_lwpinfo pl;
@@ -1102,7 +1102,7 @@ fbsd_nat_target::resume (ptid_t ptid, int step, enum gdb_signal signo)
"FLWP: fbsd_resume for ptid (%d, %ld, %ld)\n",
ptid.pid (), ptid.lwp (),
ptid.tid ());
- if (ptid_lwp_p (ptid))
+ if (ptid.lwp_p ())
{
/* If ptid is a specific LWP, suspend all other LWPs in the process. */
struct thread_info *tp;