From cc6bcb548d67a5a0a7223d81bd43c299312320c8 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 11 Jun 2018 12:14:34 -0600 Subject: Remove ptid_get_tid This removes ptid_get_tid in favor of calling the ptid_t::tid method. gdb/ChangeLog 2018-07-03 Tom Tromey * common/ptid.c (ptid_get_tid): Remove. * common/ptid.h (ptid_get_tid): Don't declare. * ada-tasks.c: Update. * aix-thread.c: Update. * bsd-uthread.c: Update. * darwin-nat.c: Update. * fbsd-nat.c: Update. * i386-darwin-nat.c: Update. * infrun.c: Update. * linux-tdep.c: Update. * nto-procfs.c: Update. * ppc-ravenscar-thread.c: Update. * python/py-infthread.c: Update. * ravenscar-thread.c: Update. * sol-thread.c: Update. * sparc-ravenscar-thread.c: Update. * windows-nat.c: Update. gdb/gdbserver/ChangeLog 2018-07-03 Tom Tromey * target.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 85cb4ca..11ef61c 100644 --- a/gdb/common/ptid.c +++ b/gdb/common/ptid.c @@ -27,14 +27,6 @@ ptid_t minus_one_ptid = ptid_t::make_minus_one (); /* See ptid.h. */ -long -ptid_get_tid (const ptid_t &ptid) -{ - return ptid.tid (); -} - -/* See ptid.h. */ - int ptid_equal (const ptid_t &ptid1, const ptid_t &ptid2) { diff --git a/gdb/common/ptid.h b/gdb/common/ptid.h index 5eeecdd..e5cc726 100644 --- a/gdb/common/ptid.h +++ b/gdb/common/ptid.h @@ -156,10 +156,6 @@ 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::tid. */ - -extern long ptid_get_tid (const ptid_t &ptid); - /* See ptid_t::operator== and ptid_t::operator!=. */ extern int ptid_equal (const ptid_t &ptid1, const ptid_t &ptid2); -- cgit v1.1