From 0e998d966be13e548721109a4e44b2887fc5cb24 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 11 Jun 2018 12:18:15 -0600 Subject: Remove ptid_is_pid This removes ptid_is_pid in favor of the ptid_t::is_pid method. gdb/ChangeLog 2018-07-03 Tom Tromey * common/ptid.c (ptid_is_pid): Remove. * common/ptid.h (ptid_is_pid): Don't declare. * infrun.c: Update. * linux-nat.c: Update. * mi/mi-interp.c: Update. * remote.c: Update. * thread.c: Update. gdb/gdbserver/ChangeLog 2018-07-03 Tom Tromey * linux-low.c: Update. --- gdb/gdbserver/ChangeLog | 4 ++++ gdb/gdbserver/linux-low.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'gdb/gdbserver') diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 5ecaf48..52335cf 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,5 +1,9 @@ 2018-07-03 Tom Tromey + * linux-low.c: Update. + +2018-07-03 Tom Tromey + * target.c: Update. 2018-07-03 Tom Tromey diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index a290b5b..cef528b 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -2635,7 +2635,7 @@ linux_wait_for_event_filtered (ptid_t wait_ptid, ptid_t filter_ptid, /* Check for a lwp with a pending status. */ - if (ptid_equal (filter_ptid, minus_one_ptid) || ptid_is_pid (filter_ptid)) + if (ptid_equal (filter_ptid, minus_one_ptid) || filter_ptid.is_pid ()) { event_thread = find_thread_in_random ([&] (thread_info *thread) { @@ -4547,7 +4547,7 @@ linux_set_resume_request (thread_info *thread, thread_resume *resume, size_t n) /* Handle both 'pPID' and 'pPID.-1' as meaning 'all threads of PID'. */ || (ptid.pid () == pid_of (thread) - && (ptid_is_pid (ptid) + && (ptid.is_pid () || ptid.lwp () == -1))) { if (resume[ndx].kind == resume_stop -- cgit v1.1