diff options
author | Tom Tromey <tom@tromey.com> | 2018-06-11 14:35:00 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-07-03 11:36:45 -0600 |
commit | 26a57c9256d7ec2b4da2f1d85a9fba830948dbd9 (patch) | |
tree | 3d6e95a05146b2eea1a317bee32302f3779c86af /gdb/linux-nat.c | |
parent | d2a107e3f9e84808ae0860693f1c488b1e3f5559 (diff) | |
download | gdb-26a57c9256d7ec2b4da2f1d85a9fba830948dbd9.zip gdb-26a57c9256d7ec2b4da2f1d85a9fba830948dbd9.tar.gz gdb-26a57c9256d7ec2b4da2f1d85a9fba830948dbd9.tar.bz2 |
Remove ptid_match
This removes ptid_match in favor of the ptid_t::matches method.
gdb/ChangeLog
2018-07-03 Tom Tromey <tom@tromey.com>
* 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 <tom@tromey.com>
* server.c: Update.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r-- | gdb/linux-nat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 1c12240..c79d72c 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -958,7 +958,7 @@ iterate_over_lwps (ptid_t filter, { lpnext = lp->next; - if (ptid_match (lp->ptid, filter)) + if (lp->ptid.matches (filter)) { if ((*callback) (lp, data) != 0) return lp; @@ -3513,7 +3513,7 @@ resume_stopped_resumed_lwps (struct lwp_info *lp, void *data) /* Don't bother if there's a breakpoint at PC that we'd hit immediately, and we're not waiting for this LWP. */ - if (!ptid_match (lp->ptid, *wait_ptid_p)) + if (!lp->ptid.matches (*wait_ptid_p)) { if (breakpoint_inserted_here_p (regcache->aspace (), pc)) leave_stopped = 1; |