diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-07-28 22:44:53 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-07-28 22:44:53 +0000 |
commit | de6ee55865039fb1c1f18d6cd404bee595998473 (patch) | |
tree | 413ddbfaae82004004f2ed48be11b23f86091204 /gdb/infttrace.c | |
parent | 158ff1e6fba22d88542c331185b006b38537819a (diff) | |
download | gdb-de6ee55865039fb1c1f18d6cd404bee595998473.zip gdb-de6ee55865039fb1c1f18d6cd404bee595998473.tar.gz gdb-de6ee55865039fb1c1f18d6cd404bee595998473.tar.bz2 |
Fix some PID/TPID fallout for HP/UX.
From 2001-07-22 Rodney Brown <rbrown64@csc.com.au>:
* infttrace.c (ptrace_wait): Match external declaration,
and match target_post_wait declaration.
Diffstat (limited to 'gdb/infttrace.c')
-rw-r--r-- | gdb/infttrace.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/infttrace.c b/gdb/infttrace.c index 5516459..00cdda2 100644 --- a/gdb/infttrace.c +++ b/gdb/infttrace.c @@ -2596,7 +2596,7 @@ count_unhandled_events (int real_pid, lwpid_t real_tid) * * Note: used by core gdb and so uses the pseudo-pid (really tid). */ -ptid_t +int ptrace_wait (ptid_t ptid, int *status) { ttstate_t tsp; @@ -2621,13 +2621,13 @@ ptrace_wait (ptid_t ptid, int *status) if (errno == ESRCH) { *status = 0; /* WIFEXITED */ - return inferior_ptid; + return PIDGET (inferior_ptid); } warning ("Call of ttrace_wait returned with errno %d.", errno); *status = ttwait_return; - return inferior_ptid; + return PIDGET (inferior_ptid); } real_pid = tsp.tts_pid; @@ -2888,7 +2888,7 @@ ptrace_wait (ptid_t ptid, int *status) *status = _SIGTRAP; } - target_post_wait (tsp.tts_pid, *status); + target_post_wait (pid_to_ptid (tsp.tts_pid), *status); #ifdef THREAD_DEBUG @@ -2914,7 +2914,7 @@ ptrace_wait (ptid_t ptid, int *status) warning ("Internal error: process-wait failed."); } - return pid_to_ptid (return_pid); + return return_pid; } |