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)
                         {


_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits

Reply via email to