Ran the static analyzer on the codebase and found a few things.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@160338 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Target/Process.cpp b/source/Target/Process.cpp
index 61da768..4b55e27 100644
--- a/source/Target/Process.cpp
+++ b/source/Target/Process.cpp
@@ -3179,11 +3179,11 @@
// break at main.cpp:58, run and hit the breakpoints on
// multiple threads, then somehow during the stepping over
// of all breakpoints no run gets reported.
- return_value = true;
// This is a transition from stop to run.
switch (m_thread_list.ShouldReportRun (event_ptr))
{
+ default:
case eVoteYes:
case eVoteNoOpinion:
return_value = true;
@@ -4258,7 +4258,6 @@
}
// Now wait for the process to stop again:
- stop_state = lldb::eStateInvalid;
event_sp.reset();
if (log)