svn commit: r248644 - head/cddl/contrib/opensolaris/lib/libdtrace/common

Andriy Gapon avg at FreeBSD.org
Sat Mar 23 08:57:55 UTC 2013


Author: avg
Date: Sat Mar 23 08:57:54 2013
New Revision: 248644
URL: http://svnweb.freebsd.org/changeset/base/248644

Log:
  dtrace: ensure that we can always catch a process (e.g. when -c is used)
  
  It is not guaranteed that a program has a symbol table entry for main
  and thus that it would be possible to set a breakpoint on it.
  
  Reviewed by:	rpaulo
  Discussed with:	rpaulo
  MFC after:	13 days

Modified:
  head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c

Modified: head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c
==============================================================================
--- head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c	Sat Mar 23 08:57:14 2013	(r248643)
+++ head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c	Sat Mar 23 08:57:54 2013	(r248644)
@@ -1115,7 +1115,7 @@ alloc:
 #if defined(sun)
 	dtp->dt_prcmode = DT_PROC_STOP_PREINIT;
 #else
-	dtp->dt_prcmode = DT_PROC_STOP_MAIN;
+	dtp->dt_prcmode = DT_PROC_STOP_POSTINIT;
 #endif
 	dtp->dt_linkmode = DT_LINK_KERNEL;
 	dtp->dt_linktype = DT_LTYP_ELF;


More information about the svn-src-all mailing list