summaryrefslogtreecommitdiff
path: root/gdb/common
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-06-11 11:18:51 -0600
committerTom Tromey <tom@tromey.com>2018-07-03 11:36:41 -0600
commitfd79271bd9dd6bb1626fb6f5ec3a415dc24950b1 (patch)
tree4c340a4284432ec8625d2d0e296001365a2e33be /gdb/common
parent057302ceb3b1c171afe9bfa24642af208a60b6e9 (diff)
downloadbinutils-gdb-fd79271bd9dd6bb1626fb6f5ec3a415dc24950b1.tar.gz
Remove ptid_build
This removes ptid_build in favor of simply calling the ptid_t constructor directly. gdb/ChangeLog 2018-07-03 Tom Tromey <tom@tromey.com> * common/ptid.h (ptid_build): Don't declare. * common/ptid.c (ptid_build): Remove. * aix-thread.c: Update. * bsd-kvm.c: Update. * bsd-uthread.c: Update. * common/agent.c: Update. * common/ptid.c: Update. * common/ptid.h: Update. * corelow.c: Update. * darwin-nat.c: Update. * fbsd-nat.c: Update. * gnu-nat.c: Update. * linux-fork.c: Update. * linux-nat.c: Update. * linux-thread-db.c: Update. * nat/linux-osdata.c: Update. * nat/linux-procfs.c: Update. * nto-procfs.c: Update. * obsd-nat.c: Update. * proc-service.c: Update. * procfs.c: Update. * ravenscar-thread.c: Update. * remote-sim.c: Update. * remote.c: Update. * sol-thread.c: Update. * target.c: Update. * windows-nat.c: Update. gdb/gdbserver/ChangeLog 2018-07-03 Tom Tromey <tom@tromey.com> * linux-low.c: Update. * lynx-low.c: Update. * nto-low.c: Update. * remote-utils.c: Update. * spu-low.c: Update. * thread-db.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.h4
3 files changed, 1 insertions, 13 deletions
diff --git a/gdb/common/agent.c b/gdb/common/agent.c
index da91f2d60ac..65d5f1938b8 100644
--- a/gdb/common/agent.c
+++ b/gdb/common/agent.c
@@ -190,7 +190,7 @@ agent_run_command (int pid, const char *cmd, int len)
{
int fd;
int tid = agent_get_helper_thread_id ();
- ptid_t ptid = ptid_build (pid, tid, 0);
+ ptid_t ptid = ptid_t (pid, tid, 0);
int ret = target_write_memory (ipa_sym_addrs.addr_cmd_buf,
(gdb_byte *) cmd, len);
diff --git a/gdb/common/ptid.c b/gdb/common/ptid.c
index c3d2794141d..49d27b4d55d 100644
--- a/gdb/common/ptid.c
+++ b/gdb/common/ptid.c
@@ -28,14 +28,6 @@ ptid_t minus_one_ptid = ptid_t::make_minus_one ();
/* See ptid.h. */
ptid_t
-ptid_build (int pid, long lwp, long tid)
-{
- return ptid_t (pid, lwp, tid);
-}
-
-/* See ptid.h. */
-
-ptid_t
pid_to_ptid (int pid)
{
return ptid_t (pid);
diff --git a/gdb/common/ptid.h b/gdb/common/ptid.h
index 4b454520588..030e97d45bc 100644
--- a/gdb/common/ptid.h
+++ b/gdb/common/ptid.h
@@ -158,10 +158,6 @@ extern ptid_t minus_one_ptid;
/* See ptid_t::ptid_t. */
-extern ptid_t ptid_build (int pid, long lwp, long tid);
-
-/* See ptid_t::ptid_t. */
-
extern ptid_t pid_to_ptid (int pid);
/* See ptid_t::pid. */