diff options
author | Greg Clayton <gclayton@apple.com> | 2014-04-24 19:54:32 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2014-04-24 19:54:32 +0000 |
commit | 4296c221d39a01d4ed8b129f05a8159e24821342 (patch) | |
tree | 4459c7391084f2c60eb9ab5b4f6159ba91947237 /lldb/tools/debugserver/source/DNB.cpp | |
parent | d19e6a7e5456690cb86cfcb0b6ad01f2d90e5ce8 (diff) | |
download | bcm5719-llvm-4296c221d39a01d4ed8b129f05a8159e24821342.tar.gz bcm5719-llvm-4296c221d39a01d4ed8b129f05a8159e24821342.zip |
Fixed an issue where we would try to interrupt a process while it is in the process of naturally stopping due to another reason (breakpoint, or step).
Added a new MachProcess::Interrupt() which correctly tracks such cases and "does the right thing".
<rdar://problem/16593556>
llvm-svn: 207139
Diffstat (limited to 'lldb/tools/debugserver/source/DNB.cpp')
-rw-r--r-- | lldb/tools/debugserver/source/DNB.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lldb/tools/debugserver/source/DNB.cpp b/lldb/tools/debugserver/source/DNB.cpp index 0fb08e2c4fd..49122cc3bf3 100644 --- a/lldb/tools/debugserver/source/DNB.cpp +++ b/lldb/tools/debugserver/source/DNB.cpp @@ -787,6 +787,16 @@ DNBProcessSignal (nub_process_t pid, int signal) return false; } + +nub_bool_t +DNBProcessInterrupt(nub_process_t pid) +{ + MachProcessSP procSP; + if (GetProcessSP (pid, procSP)) + return procSP->Interrupt(); + return false; +} + nub_bool_t DNBProcessSendEvent (nub_process_t pid, const char *event) { |