[Lldb-commits] [lldb] r189607 - Perform thread lookup after RefreshStateAfterStop()
Ed Maste
emaste at freebsd.org
Thu Aug 29 13:40:12 PDT 2013
Author: emaste
Date: Thu Aug 29 15:40:11 2013
New Revision: 189607
URL: http://llvm.org/viewvc/llvm-project?rev=189607&view=rev
Log:
Perform thread lookup after RefreshStateAfterStop()
This fixes a crash on FreeBSD
Modified:
lldb/trunk/source/Plugins/Process/POSIX/ProcessPOSIX.cpp
Modified: lldb/trunk/source/Plugins/Process/POSIX/ProcessPOSIX.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/POSIX/ProcessPOSIX.cpp?rev=189607&r1=189606&r2=189607&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/POSIX/ProcessPOSIX.cpp (original)
+++ lldb/trunk/source/Plugins/Process/POSIX/ProcessPOSIX.cpp Thu Aug 29 15:40:11 2013
@@ -499,8 +499,6 @@ ProcessPOSIX::RefreshStateAfterStop()
lldb::tid_t tid = message.GetTID();
if (log)
log->Printf ("ProcessPOSIX::%s(), message_queue size = %d, pid = %" PRIi64, __FUNCTION__, (int)m_message_queue.size(), tid);
- POSIXThread *thread = static_cast<POSIXThread*>(
- GetThreadList().FindThreadByID(tid, false).get());
if (message.GetKind() == ProcessMessage::eNewThreadMessage)
{
@@ -517,6 +515,8 @@ ProcessPOSIX::RefreshStateAfterStop()
m_thread_list.RefreshStateAfterStop();
+ POSIXThread *thread = static_cast<POSIXThread*>(
+ GetThreadList().FindThreadByID(tid, false).get());
if (thread)
thread->Notify(message);
More information about the lldb-commits
mailing list