]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r257670:
authormarkj <markj@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 27 Dec 2013 22:30:36 +0000 (22:30 +0000)
committermarkj <markj@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 27 Dec 2013 22:30:36 +0000 (22:30 +0000)
commitac6e392d1887ed1224ebaeefe1a78557d036fd8f
tree22cfb798dcf49df694bb62d4faa7cc07dd432e01
parentf027bef380b0309a8330fd38d6ad6465c30ec793
MFC r257670:
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.

git-svn-id: svn://svn.freebsd.org/base/stable/10@259969 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libproc/proc_bkpt.c