Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Aug 2014 15:21:42 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r269723 - stable/9/cddl/contrib/opensolaris/lib/libdtrace/common
Message-ID:  <53e4eb06.2113.45f27a88@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Fri Aug  8 15:21:42 2014
New Revision: 269723
URL: http://svnweb.freebsd.org/changeset/base/269723

Log:
  MFC r265631:
  Re-apply r248644. This fixes an annoying problem which caused dtrace -c to
  fail to attach to stripped binaries. With the _r_debug_postinit symbol,
  dtrace(1) can now set a breakpoint in the victim process after it has
  registered its DOF table(s) with the kernel. r_debug_state cannot be used
  for this purpose since it is called before DOF is made available, in which
  case dtrace(1) cannot create USDT probes before the program begins
  execution.

Modified:
  stable/9/cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c
Directory Properties:
  stable/9/cddl/contrib/opensolaris/   (props changed)
  stable/9/cddl/contrib/opensolaris/lib/libdtrace/common/   (props changed)

Modified: stable/9/cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c
==============================================================================
--- stable/9/cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c	Fri Aug  8 15:04:02 2014	(r269722)
+++ stable/9/cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c	Fri Aug  8 15:21:42 2014	(r269723)
@@ -1136,7 +1136,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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53e4eb06.2113.45f27a88>