summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2014-09-30 20:33:25 +0000
committerJim Ingham <jingham@apple.com>2014-09-30 20:33:25 +0000
commit89fd66813b0115faa49b3490df1dce84e9cc20ec (patch)
tree6cb572762c5bb19187f9b0e31674fe713a64c0e1 /lldb/source/Target
parent8fde95cb2b547a98b55e13f005ca00b899c095fb (diff)
downloadbcm5719-llvm-89fd66813b0115faa49b3490df1dce84e9cc20ec.tar.gz
bcm5719-llvm-89fd66813b0115faa49b3490df1dce84e9cc20ec.zip
Not all processes have a Dynamic Loader. Be sure to check that it exists before using it.
<rdar://problem/18491391> llvm-svn: 218699
Diffstat (limited to 'lldb/source/Target')
-rw-r--r--lldb/source/Target/ThreadPlanStepThrough.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/source/Target/ThreadPlanStepThrough.cpp b/lldb/source/Target/ThreadPlanStepThrough.cpp
index 18da6cdbd59..5b50a41a639 100644
--- a/lldb/source/Target/ThreadPlanStepThrough.cpp
+++ b/lldb/source/Target/ThreadPlanStepThrough.cpp
@@ -87,7 +87,10 @@ ThreadPlanStepThrough::DidPush ()
void
ThreadPlanStepThrough::LookForPlanToStepThroughFromCurrentPC()
{
- m_sub_plan_sp = m_thread.GetProcess()->GetDynamicLoader()->GetStepThroughTrampolinePlan (m_thread, m_stop_others);
+ DynamicLoader *loader = m_thread.GetProcess()->GetDynamicLoader();
+ if (loader)
+ m_sub_plan_sp = loader->GetStepThroughTrampolinePlan (m_thread, m_stop_others);
+
// If that didn't come up with anything, try the ObjC runtime plugin:
if (!m_sub_plan_sp.get())
{
OpenPOWER on IntegriCloud