This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit] Obvious fix to an earlier fork tracing patch
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 17 Aug 2003 14:54:47 -0400
- Subject: [commit] Obvious fix to an earlier fork tracing patch
I'm not quite sure how I missed this... a month or two ago I checked in a
small patch which served to call linux_record_stopped_pid from child_wait
and lin_lwp_wait. However, I neglected to actually call the function from
child_wait.
Committed as obvious.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
2003-08-17 Daniel Jacobowitz <drow@mvista.com>
* lin-lwp.c (child_wait): Call linux_record_stopped_pid.
Index: lin-lwp.c
===================================================================
RCS file: /cvs/src/src/gdb/lin-lwp.c,v
retrieving revision 1.48
diff -u -p -r1.48 lin-lwp.c
--- lin-lwp.c 17 Aug 2003 18:22:25 -0000 1.48
+++ lin-lwp.c 17 Aug 2003 18:45:56 -0000
@@ -1049,6 +1049,7 @@ child_wait (ptid_t ptid, struct target_w
if (pid != -1 && WIFSTOPPED (status) && WSTOPSIG (status) == SIGSTOP
&& pid != GET_PID (inferior_ptid))
{
+ linux_record_stopped_pid (pid);
pid = -1;
save_errno = EINTR;
}