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/common/ptid.c | 8 -------- gdb/common/ptid.h | 4 ---- 2 files changed, 12 deletions(-) (limited to 'gdb/common') diff --git a/gdb/common/ptid.c b/gdb/common/ptid.c index e0f62b1..b9a331a 100644 --- a/gdb/common/ptid.c +++ b/gdb/common/ptid.c @@ -32,11 +32,3 @@ ptid_equal (const ptid_t &ptid1, const ptid_t &ptid2) { return ptid1 == ptid2; } - -/* See ptid.h. */ - -int -ptid_match (const ptid_t &ptid, const ptid_t &filter) -{ - return ptid.matches (filter); -} diff --git a/gdb/common/ptid.h b/gdb/common/ptid.h index 86878de..2fc84b9 100644 --- a/gdb/common/ptid.h +++ b/gdb/common/ptid.h @@ -160,8 +160,4 @@ extern ptid_t minus_one_ptid; extern int ptid_equal (const ptid_t &ptid1, const ptid_t &ptid2); -/* See ptid_t::matches. */ - -extern int ptid_match (const ptid_t &ptid, const ptid_t &filter); - #endif -- cgit v1.1