[Lldb-commits] [lldb] r200267 - Fixed a crasher when handling process events that is due to a translation from the public API to the private API.
Greg Clayton
gclayton at apple.com
Mon Jan 27 16:36:31 PST 2014
Author: gclayton
Date: Mon Jan 27 18:36:31 2014
New Revision: 200267
URL: http://llvm.org/viewvc/llvm-project?rev=200267&view=rev
Log:
Fixed a crasher when handling process events that is due to a translation from the public API to the private API.
Modified:
lldb/trunk/source/Core/Debugger.cpp
Modified: lldb/trunk/source/Core/Debugger.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Debugger.cpp?rev=200267&r1=200266&r2=200267&view=diff
==============================================================================
--- lldb/trunk/source/Core/Debugger.cpp (original)
+++ lldb/trunk/source/Core/Debugger.cpp Mon Jan 27 18:36:31 2014
@@ -2871,7 +2871,8 @@ Debugger::HandleProcessEvent (const Even
StopReason curr_thread_stop_reason = eStopReasonInvalid;
if (curr_thread)
curr_thread_stop_reason = curr_thread->GetStopReason();
- if (!curr_thread->IsValid() ||
+ if (!curr_thread ||
+ !curr_thread->IsValid() ||
curr_thread_stop_reason == eStopReasonInvalid ||
curr_thread_stop_reason == eStopReasonNone)
{
More information about the lldb-commits
mailing list