From 5beccb22bc151a6711e28a893ed1446ccae7ba13 Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Tue, 5 Aug 2014 01:59:20 +0000 Subject: If you found a step through plan stop looking up the stack for a step out plan. llvm-svn: 214837 --- lldb/source/Target/ThreadPlanStepOverRange.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lldb/source/Target/ThreadPlanStepOverRange.cpp') diff --git a/lldb/source/Target/ThreadPlanStepOverRange.cpp b/lldb/source/Target/ThreadPlanStepOverRange.cpp index 0e1498dc923..8363183a420 100644 --- a/lldb/source/Target/ThreadPlanStepOverRange.cpp +++ b/lldb/source/Target/ThreadPlanStepOverRange.cpp @@ -185,6 +185,9 @@ ThreadPlanStepOverRange::ShouldStop (Event *event_ptr) else { new_plan_sp = m_thread.QueueThreadPlanForStepThrough (m_stack_id, false, stop_others); + // If we found a way through, then we should stop recursing. + if (new_plan_sp) + break; } } } -- cgit v1.2.3