2001-07-28 Andrew Cagney <ac131313@redhat.com>
+ 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.
+
+2001-07-28 Andrew Cagney <ac131313@redhat.com>
+
* MAINTAINERS: Add Orjan Friberg as cris target maintainer.
(cris): Set --enable-gdb-build-warnings flag to -w.
*
* 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;
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;
*status = _SIGTRAP;
}
- target_post_wait (tsp.tts_pid, *status);
+ target_post_wait (pid_to_ptid (tsp.tts_pid), *status);
#ifdef THREAD_DEBUG
warning ("Internal error: process-wait failed.");
}
- return pid_to_ptid (return_pid);
+ return return_pid;
}
\f