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/lynx-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/lynx-low.c')
-rw-r--r-- | gdb/gdbserver/lynx-low.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/gdbserver/lynx-low.c b/gdb/gdbserver/lynx-low.c index a0b9817..b19ea62 100644 --- a/gdb/gdbserver/lynx-low.c +++ b/gdb/gdbserver/lynx-low.c @@ -64,14 +64,14 @@ lynx_debug (char *string, ...) /* Build a ptid_t given a PID and a LynxOS TID. */ static ptid_t -lynx_ptid_build (int pid, long tid) +lynx_ptid_t (int pid, long tid) { /* brobecker/2010-06-21: It looks like the LWP field in ptids should be distinct for each thread (see write_ptid where it writes the thread ID from the LWP). So instead of storing the LynxOS tid in the tid field of the ptid, we store it in the lwp field. */ - return ptid_build (pid, tid, 0); + return ptid_t (pid, tid, 0); } /* Return the process ID of the given PTID. @@ -91,7 +91,7 @@ lynx_ptid_get_pid (ptid_t ptid) static long lynx_ptid_get_tid (ptid_t ptid) { - /* See lynx_ptid_build: The LynxOS tid is stored inside the lwp field + /* See lynx_ptid_t: The LynxOS tid is stored inside the lwp field of the ptid. */ return ptid_get_lwp (ptid); } @@ -294,7 +294,7 @@ lynx_add_threads_after_attach (int pid) if ((sscanf (buf, "%d %d", &thread_pid, &thread_tid) == 2 && thread_pid == pid)) { - ptid_t thread_ptid = lynx_ptid_build (pid, thread_tid); + ptid_t thread_ptid = lynx_ptid_t (pid, thread_tid); if (!find_thread_ptid (thread_ptid)) { @@ -312,7 +312,7 @@ lynx_add_threads_after_attach (int pid) static int lynx_attach (unsigned long pid) { - ptid_t ptid = lynx_ptid_build (pid, 0); + ptid_t ptid = lynx_ptid_t (pid, 0); if (lynx_ptrace (PTRACE_ATTACH, ptid, 0, 0, 0) != 0) error ("Cannot attach to process %lu: %s (%d)\n", pid, @@ -430,7 +430,7 @@ lynx_wait_1 (ptid_t ptid, struct target_waitstatus *status, int options) retry: ret = lynx_waitpid (pid, &wstat); - new_ptid = lynx_ptid_build (ret, ((union wait *) &wstat)->w_tid); + new_ptid = lynx_ptid_t (ret, ((union wait *) &wstat)->w_tid); find_process_pid (ret)->priv->last_wait_event_ptid = new_ptid; /* If this is a new thread, then add it now. The reason why we do @@ -524,7 +524,7 @@ lynx_wait (ptid_t ptid, struct target_waitstatus *status, int options) static int lynx_kill (int pid) { - ptid_t ptid = lynx_ptid_build (pid, 0); + ptid_t ptid = lynx_ptid_t (pid, 0); struct target_waitstatus status; struct process_info *process; @@ -543,7 +543,7 @@ lynx_kill (int pid) static int lynx_detach (int pid) { - ptid_t ptid = lynx_ptid_build (pid, 0); + ptid_t ptid = lynx_ptid_t (pid, 0); struct process_info *process; process = find_process_pid (pid); |