diff options
author | Tom Tromey <tom@tromey.com> | 2018-06-11 11:18:51 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-07-03 11:36:41 -0600 |
commit | fd79271bd9dd6bb1626fb6f5ec3a415dc24950b1 (patch) | |
tree | 4c340a4284432ec8625d2d0e296001365a2e33be /gdb/gdbserver/nto-low.c | |
parent | 057302ceb3b1c171afe9bfa24642af208a60b6e9 (diff) | |
download | gdb-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/gdbserver/nto-low.c')
-rw-r--r-- | gdb/gdbserver/nto-low.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/gdbserver/nto-low.c b/gdb/gdbserver/nto-low.c index b68b811..ed28426 100644 --- a/gdb/gdbserver/nto-low.c +++ b/gdb/gdbserver/nto-low.c @@ -142,7 +142,7 @@ nto_find_new_threads (struct nto_inferior *nto_inferior) { struct thread_info *ti; - ptid = ptid_build (nto_inferior->pid, tid, 0); + ptid = ptid_t (nto_inferior->pid, tid, 0); ti = find_thread_ptid (ptid); if (ti != NULL) { @@ -157,7 +157,7 @@ nto_find_new_threads (struct nto_inferior *nto_inferior) if (status.state != STATE_DEAD) { TRACE ("Adding thread %d\n", tid); - ptid = ptid_build (nto_inferior->pid, tid, 0); + ptid = ptid_t (nto_inferior->pid, tid, 0); if (!find_thread_ptid (ptid)) add_thread (ptid, NULL); } @@ -208,7 +208,7 @@ do_attach (pid_t pid) struct process_info *proc; kill (pid, SIGCONT); - ptid = ptid_build (status.pid, status.tid, 0); + ptid = ptid_t (status.pid, status.tid, 0); the_low_target.arch_setup (); proc = add_process (status.pid, 1); proc->tdesc = nto_tdesc; @@ -609,7 +609,7 @@ nto_wait (ptid_t ptid, } } - return ptid_build (status.pid, status.tid, 0); + return ptid_t (status.pid, status.tid, 0); } /* Fetch inferior's registers for currently selected thread (CURRENT_INFERIOR). @@ -740,7 +740,7 @@ static void nto_request_interrupt (void) { TRACE ("%s\n", __func__); - nto_set_thread (ptid_build (nto_inferior.pid, 1, 0)); + nto_set_thread (ptid_t (nto_inferior.pid, 1, 0)); if (EOK != devctl (nto_inferior.ctl_fd, DCMD_PROC_STOP, NULL, 0, 0)) TRACE ("Error stopping inferior.\n"); } |