summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/Utility/StopInfoMachException.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2013-04-29 23:30:46 +0000
committerGreg Clayton <gclayton@apple.com>2013-04-29 23:30:46 +0000
commit46c2b6e60570eb21d212596be133ee4a3b0a3ec5 (patch)
treecb1af3432b1bb264c280d781ed35ad664daf3172 /lldb/source/Plugins/Process/Utility/StopInfoMachException.cpp
parent219df4c0af5acfdc27690038cd145aa2921ed92d (diff)
downloadbcm5719-llvm-46c2b6e60570eb21d212596be133ee4a3b0a3ec5.tar.gz
bcm5719-llvm-46c2b6e60570eb21d212596be133ee4a3b0a3ec5.zip
lldb_private::StopInfo now holds onto a ThreadWP (a std::weak_ptr<lldb_private::Thread>) in case the thread goes away while the stop info still exists.
llvm-svn: 180749
Diffstat (limited to 'lldb/source/Plugins/Process/Utility/StopInfoMachException.cpp')
-rw-r--r--lldb/source/Plugins/Process/Utility/StopInfoMachException.cpp2
1 files changed, 1 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud