freebsd-skq/lib/libproc
markj 3250f22887 Modify the libproc breakpoint add/remove functions to stop the target
process if it has not already been stopped, since this is required for
ptrace(2) to work.

libdtrace does not seem to stop target processes before trying to remove
their breakpoints, so we were previously failing to remove the breakpoint
on r_debug_state() in rtld. This was causing processes to die with SIGTRAP
if they called dlopen(3) after dtrace(1) had detached.

Reported by:	symbolics@gmx.com
Reviewed by:	rpaulo
MFC after:	1 month
2013-11-05 03:23:54 +00:00
..
test
_libproc.h Revert r257248 and fix the problem in a way that doesn't violate style(9). 2013-10-29 03:12:31 +00:00
libproc.h
Makefile
proc_bkpt.c Modify the libproc breakpoint add/remove functions to stop the target 2013-11-05 03:23:54 +00:00
proc_create.c Clean up the debug printing in libproc a bit. In particular: 2013-10-27 20:39:10 +00:00
proc_regs.c Clean up the debug printing in libproc a bit. In particular: 2013-10-27 20:39:10 +00:00
proc_rtld.c - Compute the correct size to reallocate when doubling the size of the 2013-01-28 15:48:31 +00:00
proc_sym.c Fix an off-by-one error when checking whether a given address is within 2013-10-29 03:52:05 +00:00
proc_util.c Revert r257248 and fix the problem in a way that doesn't violate style(9). 2013-10-29 03:12:31 +00:00