From 26a57c9256d7ec2b4da2f1d85a9fba830948dbd9 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 11 Jun 2018 14:35:00 -0600 Subject: Remove ptid_match This removes ptid_match in favor of the ptid_t::matches method. gdb/ChangeLog 2018-07-03 Tom Tromey * common/ptid.c (ptid_match): Remove. * common/ptid.h (ptid_match): Don't declare. * fbsd-nat.c: Update. * infcmd.c: Update. * infrun.c: Update. * linux-nat.c: Update. * record-btrace.c: Update. * regcache.c: Update. * remote.c: Update. gdb/gdbserver/ChangeLog 2018-07-03 Tom Tromey * server.c: Update. --- gdb/infrun.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'gdb/infrun.c') diff --git a/gdb/infrun.c b/gdb/infrun.c index c1a0cad..c1214ee 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -2877,7 +2877,7 @@ clear_proceed_status (int step) we're about to resume, implicitly and explicitly. */ ALL_NON_EXITED_THREADS (tp) { - if (!ptid_match (tp->ptid, resume_ptid)) + if (!tp->ptid.matches (resume_ptid)) continue; clear_proceed_status_thread (tp); } @@ -3095,7 +3095,7 @@ proceed (CORE_ADDR addr, enum gdb_signal siggnal) continue; /* Ignore threads of processes we're not resuming. */ - if (!ptid_match (tp->ptid, resume_ptid)) + if (!tp->ptid.matches (resume_ptid)) continue; if (!thread_still_needs_step_over (tp)) @@ -3149,7 +3149,7 @@ proceed (CORE_ADDR addr, enum gdb_signal siggnal) ALL_NON_EXITED_THREADS (tp) { /* Ignore threads of processes we're not resuming. */ - if (!ptid_match (tp->ptid, resume_ptid)) + if (!tp->ptid.matches (resume_ptid)) continue; if (tp->resumed) @@ -3291,7 +3291,7 @@ infrun_thread_stop_requested (ptid_t ptid) thread had been temporarily paused for some step-over), set up for reporting the stop now. */ ALL_NON_EXITED_THREADS (tp) - if (ptid_match (tp->ptid, ptid)) + if (tp->ptid.matches (ptid)) { if (tp->state != THREAD_RUNNING) continue; @@ -3453,7 +3453,7 @@ random_pending_event_thread (ptid_t waiton_ptid) /* First see how many events we have. Count only resumed threads that have an event pending. */ ALL_NON_EXITED_THREADS (event_tp) - if (ptid_match (event_tp->ptid, waiton_ptid) + if (event_tp->ptid.matches (waiton_ptid) && event_tp->resumed && event_tp->suspend.waitstatus_pending_p) num_events++; @@ -3472,7 +3472,7 @@ random_pending_event_thread (ptid_t waiton_ptid) /* Select the Nth thread that has had an event. */ ALL_NON_EXITED_THREADS (event_tp) - if (ptid_match (event_tp->ptid, waiton_ptid) + if (event_tp->ptid.matches (waiton_ptid) && event_tp->resumed && event_tp->suspend.waitstatus_pending_p) if (random_selector-- == 0) -- cgit v1.1