mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
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
This commit is contained in:
parent
e1c7cfb200
commit
083a3ffdec
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=248644
@ -1115,7 +1115,7 @@ dt_vopen(int version, int flags, int *errp,
|
||||
#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;
|
||||
|
Loading…
Reference in New Issue
Block a user