]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r257670:
authormarkj <markj@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 27 Dec 2013 22:29:20 +0000 (22:29 +0000)
committermarkj <markj@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 27 Dec 2013 22:29:20 +0000 (22:29 +0000)
commit68198e5dc5b24b612a55071f5065a8277f94e4e1
treec18f8bf2dada520f6f69ceed46df29b8f4ffbc74
parentced7f80c3f8f2d06175415b8de12f3dd8eae27ad
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/9@259968 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libproc/proc_bkpt.c