[commit] Obvious fix to an earlier fork tracing patch
Daniel Jacobowitz
drow@mvista.com
Sun Aug 17 18:54:00 GMT 2003
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;
}
More information about the Gdb-patches
mailing list