mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-30 15:56:36 +08:00
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.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user