svn commit: r231072 - stable/8/sys/kern
Konstantin Belousov
kib at FreeBSD.org
Mon Feb 6 10:35:22 UTC 2012
Author: kib
Date: Mon Feb 6 10:35:21 2012
New Revision: 231072
URL: http://svn.freebsd.org/changeset/base/231072
Log:
MFC r230785:
A debugger which requested PT_FOLLOW_FORK should get the notification
about new child not only when doing PT_TO_SCX, but also for PT_CONTINUE.
If TDB_FORK flag is set, always issue a stop, the same as is done for
TDB_EXEC.
Modified:
stable/8/sys/kern/subr_syscall.c
Directory Properties:
stable/8/sys/ (props changed)
Modified: stable/8/sys/kern/subr_syscall.c
==============================================================================
--- stable/8/sys/kern/subr_syscall.c Mon Feb 6 10:23:11 2012 (r231071)
+++ stable/8/sys/kern/subr_syscall.c Mon Feb 6 10:35:21 2012 (r231072)
@@ -194,7 +194,8 @@ syscallret(struct thread *td, int error,
* executes. If debugger requested tracing of syscall
* returns, do it now too.
*/
- if (traced && ((td->td_dbgflags & TDB_EXEC) != 0 ||
+ if (traced &&
+ ((td->td_dbgflags & (TDB_FORK | TDB_EXEC)) != 0 ||
(p->p_stops & S_PT_SCX) != 0))
ptracestop(td, SIGTRAP);
td->td_dbgflags &= ~(TDB_SCX | TDB_EXEC | TDB_FORK);
More information about the svn-src-all
mailing list