Skip to content

Commit 7507011

Browse files
committed
[lldb] inserted a typeo when checking in a suggested fix
(cherry picked from commit fa71238)
1 parent 09ca29c commit 7507011

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lldb/source/Target/ThreadPlanStepOut.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,11 @@ bool ThreadPlanStepOut::ShouldStop(Event *event_ptr) {
398398
}
399399

400400
if (!done) {
401-
StackID frame_zero_id = GetThread().GetStackFrameAtIndex(0)->GetStackID();
402-
done = !IsYounger(frame_zero_id, m_step_out_to_id);
401+
StopInfoSP stop_info_sp = GetPrivateStopInfo();
402+
if (stop_info_sp && stop_info_sp->GetStopReason() == eStopReasonBreakpoint) {
403+
StackID frame_zero_id = GetThread().GetStackFrameAtIndex(0)->GetStackID();
404+
done = !IsYounger(frame_zero_id, m_step_out_to_id);
405+
}
403406
}
404407

405408
// The normal step out computations think we are done, so all we need to do

0 commit comments

Comments
 (0)