freebsd-dev/lib/libproc
Mark Johnston 813b26945c 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 Fix libproc test case to work with clang premature optimization 2012-12-26 05:11:48 +00:00
_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 Several fixes for libproc: 2010-08-11 17:33:26 +00:00
Makefile Add support for demangling C++ symbols. This requires linking libproc with 2012-09-06 03:19:48 +00:00
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