Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Sep 2010 15:59:14 +0000 (UTC)
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r212495 - head/cddl/contrib/opensolaris/lib/libdtrace/common
Message-ID:  <201009121559.o8CFxEIx070650@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rpaulo
Date: Sun Sep 12 15:59:14 2010
New Revision: 212495
URL: http://svn.freebsd.org/changeset/base/212495

Log:
  Give a chance to the target binary to run the ctors by waiting until it
  has reached main(). This allows plockstat to work.
  
  Sponsored by:	The FreeBSD Foundation

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	Sun Sep 12 14:12:16 2010	(r212494)
+++ head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c	Sun Sep 12 15:59:14 2010	(r212495)
@@ -1103,7 +1103,7 @@ alloc:
 #if defined(sun)
 	dtp->dt_prcmode = DT_PROC_STOP_PREINIT;
 #else
-	dtp->dt_prcmode = DT_PROC_STOP_POSTINIT;
+	dtp->dt_prcmode = DT_PROC_STOP_MAIN;
 #endif
 	dtp->dt_linkmode = DT_LINK_KERNEL;
 	dtp->dt_linktype = DT_LTYP_ELF;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009121559.o8CFxEIx070650>