diff options
author | Ed Maste <emaste@freebsd.org> | 2014-04-01 14:30:56 +0000 |
---|---|---|
committer | Ed Maste <emaste@freebsd.org> | 2014-04-01 14:30:56 +0000 |
commit | 70882939f1eb3505829926de28a4b2063d1d4e03 (patch) | |
tree | 3861e915c9703c23122484e3835a5929990203e0 /lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.h | |
parent | 0feb91ef15f833c48a96e54ea9de594d7050dda5 (diff) | |
download | bcm5719-llvm-70882939f1eb3505829926de28a4b2063d1d4e03.tar.gz bcm5719-llvm-70882939f1eb3505829926de28a4b2063d1d4e03.zip |
Implement ProcessMonitor::Kill for FreeBSD
On FreeBSD ptrace(PT_KILL) is used to terminate the traced process
(as if PT_CONTINUE had been used with SIGKILL as the signal to be
delivered), and is the desired behaviour for ProcessPOSIX::DoDestroy.
On Linux, after ptrace(PTRACE_KILL) the traced process still exists
and can be interrogated. It is only upon resume that it exits as though
it received SIGKILL.
For now I'm committing only the FreeBSD change, until the Linux change
(review D3159) is successfully tested.
http://llvm.org/pr18894
llvm-svn: 205315
Diffstat (limited to 'lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.h')
-rw-r--r-- | lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.h b/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.h index 4c8198fb2e4..ad888095147 100644 --- a/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.h +++ b/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.h @@ -194,11 +194,9 @@ public: bool SingleStep(lldb::tid_t unused, uint32_t signo); - /// Sends the inferior process a PTRACE_KILL signal. The inferior will - /// still exists and can be interrogated. Once resumed it will exit as - /// though it received a SIGKILL. + /// Terminate the traced process. bool - BringProcessIntoLimbo(); + Kill(); lldb_private::Error Detach(lldb::tid_t tid); |