summaryrefslogtreecommitdiffstats
path: root/lldb/source
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2014-08-05 01:59:20 +0000
committerJim Ingham <jingham@apple.com>2014-08-05 01:59:20 +0000
commit5beccb22bc151a6711e28a893ed1446ccae7ba13 (patch)
treee4739ca20d6c46ad3f071759240ddda665e01f93 /lldb/source
parentcca8995ab28bcc54b5eb3825f9f59de496dd9427 (diff)
downloadbcm5719-llvm-5beccb22bc151a6711e28a893ed1446ccae7ba13.tar.gz
bcm5719-llvm-5beccb22bc151a6711e28a893ed1446ccae7ba13.zip
If you found a step through plan stop looking up the stack for a step out plan.
llvm-svn: 214837
Diffstat (limited to 'lldb/source')
-rw-r--r--lldb/source/Target/ThreadPlanStepOverRange.cpp3
1 files changed, 3 insertions, 0 deletions
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;
}
}
}
OpenPOWER on IntegriCloud