More useful STEP logging.
Be sure to clear out the base plan's m_report_run and m_report_stop each time we resume so we don't use stale values.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@124113 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Target/ThreadPlanBase.cpp b/source/Target/ThreadPlanBase.cpp
index eceb383..b83306c 100644
--- a/source/Target/ThreadPlanBase.cpp
+++ b/source/Target/ThreadPlanBase.cpp
@@ -90,7 +90,8 @@
{
case eStopReasonInvalid:
case eStopReasonNone:
- m_run_vote = eVoteNo;
+ // This
+ m_run_vote = eVoteNoOpinion;
m_stop_vote = eVoteNo;
return false;
@@ -153,7 +154,7 @@
}
else
{
- m_run_vote = eVoteNo;
+ m_run_vote = eVoteNoOpinion;
m_stop_vote = eVoteNo;
}
@@ -179,6 +180,17 @@
return true;
}
+bool
+ThreadPlanBase::WillResume (lldb::StateType resume_state, bool current_plan)
+{
+ // Reset these to the default values so we don't set them wrong, then not get asked
+ // for a while, then return the wrong answer.
+ m_run_vote = eVoteNoOpinion;
+ m_stop_vote = eVoteNo;
+ return true;
+}
+
+
// The base plan is never done.
bool
ThreadPlanBase::MischiefManaged ()