]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r263678: lldb: Invoke PT_KILL from ProcessPosix::DoDestroy
authoremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 23 Jul 2014 19:37:24 +0000 (19:37 +0000)
committeremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 23 Jul 2014 19:37:24 +0000 (19:37 +0000)
commitd054c0f7d89ded3996b4eb7cab576144fda02af9
tree8b0e28de9f99046403754efc395e9008e23d63b1
parent6eab2ed909ce9d7c51807281ae24b624f2bcdca4
MFC r263678: lldb: Invoke PT_KILL from ProcessPosix::DoDestroy

  We previously sent SIGKILL to the debuggee in DoDestroy, but did not
  actually detach or kill via ptrace.  It seems that this somehow didn't
  matter on Linux, but did on FreeBSD.

  This would happen when quitting LLDB while stopped at a breakpoint, for
  example.  The debuggee remained stopped in ptrace (with the signal
  either pending or lost).  After a timeout of a second or two LLDB exits,
  which caused the debuggee to resume and dump core from an unhandled
  SIGTRAP.

  BringProcessIntoLimbo is a poorly named wrapper for ptrace(PT_KILL)
  which is the desired behaviour from DoDestroy.

  http://llvm.org/pr18894

Sponsored by: DARPA, AFRL

git-svn-id: svn://svn.freebsd.org/base/stable/10@269025 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/llvm/tools/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp