File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -200,11 +200,14 @@ class Thread : public std::enable_shared_from_this<Thread>,
200
200
// / The User resume state for this thread.
201
201
lldb::StateType GetResumeState () const { return m_resume_state; }
202
202
203
- // This function is called on all the threads before "ShouldResume" and
204
- // "WillResume" in case a thread needs to change its state before the
205
- // ThreadList polls all the threads to figure out which ones actually will
206
- // get to run and how.
207
- void SetupForResume ();
203
+ // / This function is called on all the threads before "ShouldResume" and
204
+ // / "WillResume" in case a thread needs to change its state before the
205
+ // / ThreadList polls all the threads to figure out which ones actually will
206
+ // / get to run and how.
207
+ // /
208
+ // / \return
209
+ // / True if we pushed a ThreadPlanStepOverBreakpoint
210
+ bool SetupForResume ();
208
211
209
212
// Do not override this function, it is for thread plan logic only
210
213
bool ShouldResume (lldb::StateType resume_state);
Original file line number Diff line number Diff line change @@ -617,15 +617,15 @@ void Thread::WillStop() {
617
617
current_plan->WillStop ();
618
618
}
619
619
620
- void Thread::SetupForResume () {
620
+ bool Thread::SetupForResume () {
621
621
if (GetResumeState () != eStateSuspended) {
622
622
// First check whether this thread is going to "actually" resume at all.
623
623
// For instance, if we're stepping from one level to the next of an
624
624
// virtual inlined call stack, we just change the inlined call stack index
625
625
// without actually running this thread. In that case, for this thread we
626
626
// shouldn't push a step over breakpoint plan or do that work.
627
627
if (GetCurrentPlan ()->IsVirtualStep ())
628
- return ;
628
+ return false ;
629
629
630
630
// If we're at a breakpoint push the step-over breakpoint plan. Do this
631
631
// before telling the current plan it will resume, since we might change
@@ -663,11 +663,13 @@ void Thread::SetupForResume() {
663
663
step_bp_plan->SetAutoContinue (true );
664
664
}
665
665
QueueThreadPlan (step_bp_plan_sp, false );
666
+ return true ;
666
667
}
667
668
}
668
669
}
669
670
}
670
671
}
672
+ return false ;
671
673
}
672
674
673
675
bool Thread::ShouldResume (StateType resume_state) {
You can’t perform that action at this time.
0 commit comments