aboutsummaryrefslogtreecommitdiff
path: root/gdb/obsd-nat.c
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/obsd-nat.c
parent057302ceb3b1c171afe9bfa24642af208a60b6e9 (diff)
downloadgdb-fd79271bd9dd6bb1626fb6f5ec3a415dc24950b1.zip
gdb-fd79271bd9dd6bb1626fb6f5ec3a415dc24950b1.tar.gz
gdb-fd79271bd9dd6bb1626fb6f5ec3a415dc24950b1.tar.bz2
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/obsd-nat.c')
-rw-r--r--gdb/obsd-nat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/obsd-nat.c b/gdb/obsd-nat.c
index 91bed71..08e873d 100644
--- a/gdb/obsd-nat.c
+++ b/gdb/obsd-nat.c
@@ -62,7 +62,7 @@ obsd_nat_target::update_thread_list ()
while (pts.pts_tid != -1)
{
- ptid_t ptid = ptid_build (pid, pts.pts_tid, 0);
+ ptid_t ptid = ptid_t (pid, pts.pts_tid, 0);
if (!in_thread_list (ptid))
{
@@ -151,7 +151,7 @@ obsd_nat_target::wait (ptid_t ptid, struct target_waitstatus *ourstatus,
return pid_to_ptid (pid);
}
- ptid = ptid_build (pid, pe.pe_tid, 0);
+ ptid = ptid_t (pid, pe.pe_tid, 0);
if (!in_thread_list (ptid))
{
if (ptid_get_lwp (inferior_ptid) == 0)