summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/ThreadPlan.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2012-05-03 21:19:36 +0000
committerJim Ingham <jingham@apple.com>2012-05-03 21:19:36 +0000
commit64e7ead1d817540a4ba4887da6c8a049788beee7 (patch)
tree27583d78171eaf9db61b80e658bed00eb5c2c637 /lldb/source/Target/ThreadPlan.cpp
parent60d835fa597c86c88dc2c7bfec399395d4d43f8b (diff)
downloadbcm5719-llvm-64e7ead1d817540a4ba4887da6c8a049788beee7.tar.gz
bcm5719-llvm-64e7ead1d817540a4ba4887da6c8a049788beee7.zip
Clean up the usage of "MasterPlan" status in ThreadPlans. Only user-initiated plans
should be MasterPlans that want to stay on the plan stack. So make all plans NOT MasterPlans by default and then have the SB API's and the CommandObjectThread step commands set this explicitly. Also added a "clean up" phase to the Thread::ShouldStop so that if plans get stranded on the stack, we can remove them. This is done by adding an IsPlanStale method to the thread plans, and if the plan can know that it is no longer relevant, it returns true, and the plan and its sub-plans will get discarded. llvm-svn: 156101
Diffstat (limited to 'lldb/source/Target/ThreadPlan.cpp')
-rw-r--r--lldb/source/Target/ThreadPlan.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Target/ThreadPlan.cpp b/lldb/source/Target/ThreadPlan.cpp
index 22c2fc4b8ff..f8c675bc664 100644
--- a/lldb/source/Target/ThreadPlan.cpp
+++ b/lldb/source/Target/ThreadPlan.cpp
@@ -36,7 +36,7 @@ ThreadPlan::ThreadPlan(ThreadPlanKind kind, const char *name, Thread &thread, Vo
m_plan_complete_mutex (Mutex::eMutexTypeRecursive),
m_plan_complete (false),
m_plan_private (false),
- m_okay_to_discard (false),
+ m_okay_to_discard (true),
m_is_master_plan (false),
m_plan_succeeded(true)
{
OpenPOWER on IntegriCloud