[Lldb-commits] [lldb] r116870 - /lldb/trunk/source/Target/ThreadPlanCallFunction.cpp

Sean Callanan scallanan at apple.com
Tue Oct 19 15:24:06 PDT 2010


Author: spyffe
Date: Tue Oct 19 17:24:06 2010
New Revision: 116870

URL: http://llvm.org/viewvc/llvm-project?rev=116870&view=rev
Log:
Expressions now claim responsibility for all stops
that occur while they run.  This means that they
clean up after themselves even when they crash.

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

Modified: lldb/trunk/source/Target/ThreadPlanCallFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/ThreadPlanCallFunction.cpp?rev=116870&r1=116869&r2=116870&view=diff
==============================================================================
--- lldb/trunk/source/Target/ThreadPlanCallFunction.cpp (original)
+++ lldb/trunk/source/Target/ThreadPlanCallFunction.cpp Tue Oct 19 17:24:06 2010
@@ -171,6 +171,10 @@
 bool
 ThreadPlanCallFunction::PlanExplainsStop ()
 {
+    // If the subplan is running, any crashes are attributable to us.
+    
+    return (m_subplan_sp.get() != NULL);
+    
     if (!m_subplan_sp)
         return false;
     else





More information about the lldb-commits mailing list