This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: PATCH: infttrace.c for hp1.1-hp-hpux11.00
- To: RDBrown at mira dot net, RBrown64 at csc dot com dot au
- Subject: Re: PATCH: infttrace.c for hp1.1-hp-hpux11.00
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Sat, 28 Jul 2001 18:45:38 -0400
- Cc: gdb-patches at sources dot redhat dot com
- References: <E15OIbc-0000kN-00@urtur>
FYI,
I checked in the attatched. I should note that I hand edited this.
Andrew
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.
Index: infttrace.c
===================================================================
RCS file: /cvs/src/src/gdb/infttrace.c,v
retrieving revision 1.14
diff -u -r1.14 infttrace.c
--- infttrace.c 2001/07/26 02:23:57 1.14
+++ infttrace.c 2001/07/28 22:39:58
@@ -2596,7 +2596,7 @@
*
* 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 @@
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 @@
*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 @@
warning ("Internal error: process-wait failed.");
}
- return pid_to_ptid (return_pid);
+ return return_pid;
}