From fd79271bd9dd6bb1626fb6f5ec3a415dc24950b1 Mon Sep 17 00:00:00 2001 From: Tom Tromey <tom@tromey.com> Date: Mon, 11 Jun 2018 11:18:51 -0600 Subject: 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. --- gdb/nto-procfs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/nto-procfs.c') diff --git a/gdb/nto-procfs.c b/gdb/nto-procfs.c index a572fc1..c1b38e8 100644 --- a/gdb/nto-procfs.c +++ b/gdb/nto-procfs.c @@ -413,7 +413,7 @@ nto_procfs_target::update_thread_list () returned different tid, meaning the requested tid no longer exists (e.g. thread exited). */ continue; - ptid = ptid_build (pid, 0, tid); + ptid = ptid_t (pid, 0, tid); new_thread = find_thread_ptid (ptid); if (!new_thread) new_thread = add_thread (ptid); @@ -766,7 +766,7 @@ do_attach (ptid_t ptid) && status.flags & _DEBUG_FLAG_STOPPED) SignalKill (nto_node (), ptid_get_pid (ptid), 0, SIGCONT, 0, 0); nto_init_solib_absolute_prefix (); - return ptid_build (ptid_get_pid (ptid), 0, status.tid); + return ptid_t (ptid_get_pid (ptid), 0, status.tid); } /* Ask the user what to do when an interrupt is received. */ @@ -899,7 +899,7 @@ nto_procfs_target::wait (ptid_t ptid, struct target_waitstatus *ourstatus, } } - return ptid_build (status.pid, 0, status.tid); + return ptid_t (status.pid, 0, status.tid); } /* Read the current values of the inferior's registers, both the -- cgit v1.1