From c14ee32db561671a16759c8307d5391646cb87c4 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Thu, 22 Sep 2011 04:58:26 +0000 Subject: Converted the lldb_private::Process over to use the intrusive shared pointers. Changed the ExecutionContext over to use shared pointers for the target, process, thread and frame since these objects can easily go away at any time and any object that was holding onto an ExecutionContext was running the risk of using a bad object. Now that the shared pointers for target, process, thread and frame are just a single pointer (they all use the instrusive shared pointers) the execution context is much safer and still the same size. Made the shared pointers in the the ExecutionContext class protected and made accessors for all of the various ways to get at the pointers, references, and shared pointers. llvm-svn: 140298 --- lldb/source/Target/ThreadPlanTestCondition.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Target/ThreadPlanTestCondition.cpp') diff --git a/lldb/source/Target/ThreadPlanTestCondition.cpp b/lldb/source/Target/ThreadPlanTestCondition.cpp index 9c17ac3b61a..42aa01cf8b7 100644 --- a/lldb/source/Target/ThreadPlanTestCondition.cpp +++ b/lldb/source/Target/ThreadPlanTestCondition.cpp @@ -102,7 +102,7 @@ ThreadPlanTestCondition::ShouldStop (Event *event_ptr) m_did_stop = true; } } - else if (m_exe_ctx.thread->WasThreadPlanDiscarded (m_expression_plan_sp.get())) + else if (m_exe_ctx.GetThreadRef().WasThreadPlanDiscarded (m_expression_plan_sp.get())) { if (log) log->Printf("ExecuteExpression thread plan was discarded.\n"); -- cgit v1.2.3