From 46c2b6e60570eb21d212596be133ee4a3b0a3ec5 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Mon, 29 Apr 2013 23:30:46 +0000 Subject: lldb_private::StopInfo now holds onto a ThreadWP (a std::weak_ptr) in case the thread goes away while the stop info still exists. llvm-svn: 180749 --- lldb/source/Plugins/Process/Utility/StopInfoMachException.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Plugins/Process/Utility') diff --git a/lldb/source/Plugins/Process/Utility/StopInfoMachException.cpp b/lldb/source/Plugins/Process/Utility/StopInfoMachException.cpp index 1b2974de5eb..51d2052e193 100644 --- a/lldb/source/Plugins/Process/Utility/StopInfoMachException.cpp +++ b/lldb/source/Plugins/Process/Utility/StopInfoMachException.cpp @@ -34,7 +34,7 @@ StopInfoMachException::GetDescription () { if (m_description.empty() && m_value != 0) { - ExecutionContext exe_ctx (m_thread.shared_from_this()); + ExecutionContext exe_ctx (m_thread_wp.lock()); Target *target = exe_ctx.GetTargetPtr(); const llvm::Triple::ArchType cpu = target ? target->GetArchitecture().GetMachine() : llvm::Triple::UnknownArch; -- cgit v1.2.3