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:
parent
d2a107e3f9
commit
26a57c9256
12 changed files with 40 additions and 36 deletions
|
@ -190,7 +190,7 @@ remove_all_on_match_ptid (QUEUE (notif_event_p) *q,
|
|||
ptid_t filter_ptid = *(ptid_t *) data;
|
||||
struct vstop_notif *vstop_event = (struct vstop_notif *) event;
|
||||
|
||||
if (ptid_match (vstop_event->ptid, filter_ptid))
|
||||
if (vstop_event->ptid.matches (filter_ptid))
|
||||
{
|
||||
if (q->free_func != NULL)
|
||||
q->free_func (event);
|
||||
|
@ -229,13 +229,13 @@ in_queued_stop_replies_ptid (QUEUE (notif_event_p) *q,
|
|||
ptid_t filter_ptid = *(ptid_t *) data;
|
||||
struct vstop_notif *vstop_event = (struct vstop_notif *) event;
|
||||
|
||||
if (ptid_match (vstop_event->ptid, filter_ptid))
|
||||
if (vstop_event->ptid.matches (filter_ptid))
|
||||
return 0;
|
||||
|
||||
/* Don't resume fork children that GDB does not know about yet. */
|
||||
if ((vstop_event->status.kind == TARGET_WAITKIND_FORKED
|
||||
|| vstop_event->status.kind == TARGET_WAITKIND_VFORKED)
|
||||
&& ptid_match (vstop_event->status.value.related_pid, filter_ptid))
|
||||
&& vstop_event->status.value.related_pid.matches (filter_ptid))
|
||||
return 0;
|
||||
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue