diff options
author | avg <avg@FreeBSD.org> | 2013-03-23 08:57:54 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2013-03-23 08:57:54 +0000 |
commit | 880c47f8a7d0d034cf91e208b1c15b9e7226b939 (patch) | |
tree | 4c47bbbff970d9098d995ef1a68019b917b5b36d | |
parent | 6415d908e46de816c5fb3278409474fa8b9e7838 (diff) | |
download | FreeBSD-src-880c47f8a7d0d034cf91e208b1c15b9e7226b939.zip FreeBSD-src-880c47f8a7d0d034cf91e208b1c15b9e7226b939.tar.gz |
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
-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 c2d817a..edd6aa7 100644 --- a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c +++ b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c @@ -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; |