diff options
author | markj <markj@FreeBSD.org> | 2014-08-08 15:21:43 +0000 |
---|---|---|
committer | markj <markj@FreeBSD.org> | 2014-08-08 15:21:43 +0000 |
commit | c189d6694cd1be0f1206e57630eb7577f12831ca (patch) | |
tree | ff623afb45eb8dac87bdd56b3bf492b4438366b9 /cddl/contrib | |
parent | 104ac38f1460820d67f63fd4e02d262275343491 (diff) | |
download | FreeBSD-src-c189d6694cd1be0f1206e57630eb7577f12831ca.zip FreeBSD-src-c189d6694cd1be0f1206e57630eb7577f12831ca.tar.gz |
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.
Diffstat (limited to 'cddl/contrib')
-rw-r--r-- | cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c index 01cf804..3e95836 100644 --- a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c +++ b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c @@ -1160,7 +1160,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; |