aboutsummaryrefslogtreecommitdiff
path: root/gdb/common
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-06-11 14:45:22 -0600
committerTom Tromey <tom@tromey.com>2018-07-03 11:36:46 -0600
commitd7e15655a40e9133a1cbf53ea071f82cd6745ac8 (patch)
tree78381ff8daa008d7debde45e889279381d95bd91 /gdb/common
parent26a57c9256d7ec2b4da2f1d85a9fba830948dbd9 (diff)
downloadgdb-d7e15655a40e9133a1cbf53ea071f82cd6745ac8.zip
gdb-d7e15655a40e9133a1cbf53ea071f82cd6745ac8.tar.gz
gdb-d7e15655a40e9133a1cbf53ea071f82cd6745ac8.tar.bz2
Remove ptid_equal
Remove ptid_equal in favor of using "==". gdb/ChangeLog 2018-07-03 Tom Tromey <tom@tromey.com> * common/ptid.c (ptid_equal): Remove. * common/ptid.h (ptid_equal): Don't declare. * ada-tasks.c: Update. * breakpoint.c: Update. * common/agent.c: Update. * corelow.c: Update. * darwin-nat-info.c: Update. * darwin-nat.c: Update. * dcache.c: Update. * dtrace-probe.c: Update. * dummy-frame.c: Update. * fbsd-nat.c: Update. * frame.c: Update. * gdbthread.h: Update. * gnu-nat.c: Update. * go32-nat.c: Update. * inf-loop.c: Update. * inf-ptrace.c: Update. * infcall.c: Update. * infcmd.c: Update. * inflow.c: Update. * infrun.c: Update. * linux-fork.c: Update. * linux-nat.c: Update. * linux-thread-db.c: Update. * mi/mi-cmd-var.c: Update. * mi/mi-interp.c: Update. * mi/mi-main.c: Update. * nto-procfs.c: Update. * ppc-linux-tdep.c: Update. * procfs.c: Update. * python/py-inferior.c: Update. * python/py-record-btrace.c: Update. * python/py-record.c: Update. * ravenscar-thread.c: Update. * regcache.c: Update. * remote-sim.c: Update. * remote.c: Update. * sol-thread.c: Update. * solib.c: Update. * target.c: Update. * tui/tui-stack.c: Update. * varobj.c: Update. * windows-nat.c: Update. * windows-tdep.c: Update. gdb/gdbserver/ChangeLog 2018-07-03 Tom Tromey <tom@tromey.com> * linux-low.c: Update. * lynx-low.c: Update. * mem-break.c: Update. * nto-low.c: Update. * remote-utils.c: Update. * server.c: Update. * spu-low.c: Update. * target.c: Update. * win32-low.c: Update.
Diffstat (limited to 'gdb/common')
-rw-r--r--gdb/common/agent.c2
-rw-r--r--gdb/common/ptid.c8
-rw-r--r--gdb/common/ptid.h8
3 files changed, 1 insertions, 17 deletions
diff --git a/gdb/common/agent.c b/gdb/common/agent.c
index 65d5f19..8f80aee 100644
--- a/gdb/common/agent.c
+++ b/gdb/common/agent.c
@@ -234,7 +234,7 @@ agent_run_command (int pid, const char *cmd, int len)
return -1;
/* Need to read response with the inferior stopped. */
- if (!ptid_equal (ptid, null_ptid))
+ if (ptid != null_ptid)
{
/* Stop thread PTID. */
DEBUG_AGENT ("agent: stop helper thread\n");
diff --git a/gdb/common/ptid.c b/gdb/common/ptid.c
index b9a331a..22d79e2 100644
--- a/gdb/common/ptid.c
+++ b/gdb/common/ptid.c
@@ -24,11 +24,3 @@
ptid_t null_ptid = ptid_t::make_null ();
ptid_t minus_one_ptid = ptid_t::make_minus_one ();
-
-/* See ptid.h. */
-
-int
-ptid_equal (const ptid_t &ptid1, const ptid_t &ptid2)
-{
- return ptid1 == ptid2;
-}
diff --git a/gdb/common/ptid.h b/gdb/common/ptid.h
index 2fc84b9..03f5321 100644
--- a/gdb/common/ptid.h
+++ b/gdb/common/ptid.h
@@ -152,12 +152,4 @@ extern ptid_t null_ptid;
extern ptid_t minus_one_ptid;
-
-/* The following functions are kept for backwards compatibility. The use of
- the ptid_t methods is preferred. */
-
-/* See ptid_t::operator== and ptid_t::operator!=. */
-
-extern int ptid_equal (const ptid_t &ptid1, const ptid_t &ptid2);
-
#endif