Expressions now claim responsibility for all stops
that occur while they run. This means that they
clean up after themselves even when they crash.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@116870 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Target/ThreadPlanCallFunction.cpp b/source/Target/ThreadPlanCallFunction.cpp
index 3935a13..fb5ca20 100644
--- a/source/Target/ThreadPlanCallFunction.cpp
+++ b/source/Target/ThreadPlanCallFunction.cpp
@@ -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