Author: jingham
Date: Tue Sep 30 15:33:25 2014
New Revision: 218699

URL: http://llvm.org/viewvc/llvm-project?rev=218699&view=rev
Log:
Not all processes have a Dynamic Loader.  Be sure to check that it exists 
before using it.

<rdar://problem/18491391>

Modified:
    lldb/trunk/source/Target/ThreadPlanStepThrough.cpp

Modified: lldb/trunk/source/Target/ThreadPlanStepThrough.cpp
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/ThreadPlanStepThrough.cpp?rev=218699&r1=218698&r2=218699&view=diff
==============================================================================
--- lldb/trunk/source/Target/ThreadPlanStepThrough.cpp (original)
+++ lldb/trunk/source/Target/ThreadPlanStepThrough.cpp Tue Sep 30 15:33:25 2014
@@ -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())
     {


_______________________________________________
lldb-commits mailing list
lldb-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits

Reply via email to