aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/Linux/NativeProcessLinux.h
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2015-05-15 13:49:01 +0000
committerPavel Labath <labath@google.com>2015-05-15 13:49:01 +0000
commit9eb1ecb9afeda42efbc64de1ddf20ff8ed78c6c1 (patch)
tree61e37de9a8b1912d195fad220d7762639f7f0857 /lldb/source/Plugins/Process/Linux/NativeProcessLinux.h
parentd16af5dfda7501a83cf32323c832bcb00fb3555d (diff)
downloadllvm-9eb1ecb9afeda42efbc64de1ddf20ff8ed78c6c1.zip
llvm-9eb1ecb9afeda42efbc64de1ddf20ff8ed78c6c1.tar.gz
llvm-9eb1ecb9afeda42efbc64de1ddf20ff8ed78c6c1.tar.bz2
[NativeProcessLinux] Fix removal of temporary breakpoints
Summary: There was an issue in NPL, where we attempted removal of temporary breakpoints (used to implement software single stepping), while some threads of the process were running. This is a problem since we currently always use the main thread's ID in the removal ptrace call. Therefore, if the main thread was still running, the ptrace call would fail, and the software breakpoint would remain, causing all kinds of problems. This change removes the breakpoints after all threads have stopped. This fixes TestExitDuringStep on Android arm and can also potentially help in other situations, as previously the breakpoint would not get removed if the thread stopped for another reason. Test Plan: TestExitDuringStep passes, other tests remain unchanged. Reviewers: tberghammer Subscribers: tberghammer, aemerson, lldb-commits Differential Revision: http://reviews.llvm.org/D9792 llvm-svn: 237448
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeProcessLinux.h')
-rw-r--r--lldb/source/Plugins/Process/Linux/NativeProcessLinux.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.h b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.h
index f280b36..57c598f 100644
--- a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.h
+++ b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.h
@@ -385,8 +385,8 @@ namespace process_linux {
};
typedef std::unique_ptr<PendingNotification> PendingNotificationUP;
- // Fire pending notification if no pending thread stops remain.
- void SignalIfRequirementsSatisfied();
+ // Notify the delegate if all threads have stopped.
+ void SignalIfAllThreadsStopped();
void
RequestStopOnAllRunningThreads();