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.
This commit is contained in:
parent
057302ceb3
commit
fd79271bd9
33 changed files with 157 additions and 130 deletions
|
@ -939,7 +939,7 @@ fbsd_add_threads (pid_t pid)
|
|||
|
||||
for (i = 0; i < nlwps; i++)
|
||||
{
|
||||
ptid_t ptid = ptid_build (pid, lwps[i], 0);
|
||||
ptid_t ptid = ptid_t (pid, lwps[i], 0);
|
||||
|
||||
if (!in_thread_list (ptid))
|
||||
{
|
||||
|
@ -1253,7 +1253,7 @@ fbsd_nat_target::wait (ptid_t ptid, struct target_waitstatus *ourstatus,
|
|||
if (ptrace (PT_LWPINFO, pid, (caddr_t) &pl, sizeof pl) == -1)
|
||||
perror_with_name (("ptrace"));
|
||||
|
||||
wptid = ptid_build (pid, pl.pl_lwpid, 0);
|
||||
wptid = ptid_t (pid, pl.pl_lwpid, 0);
|
||||
|
||||
if (debug_fbsd_nat)
|
||||
{
|
||||
|
@ -1357,7 +1357,7 @@ fbsd_nat_target::wait (ptid_t ptid, struct target_waitstatus *ourstatus,
|
|||
perror_with_name (("ptrace"));
|
||||
|
||||
gdb_assert (pl.pl_flags & PL_FLAG_CHILD);
|
||||
child_ptid = ptid_build (child, pl.pl_lwpid, 0);
|
||||
child_ptid = ptid_t (child, pl.pl_lwpid, 0);
|
||||
}
|
||||
|
||||
/* Enable additional events on the child process. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue