summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Debugger.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2014-01-28 00:36:31 +0000
committerGreg Clayton <gclayton@apple.com>2014-01-28 00:36:31 +0000
commitc809cbcf4d8fcef88f5aa65c1be65e43a53859a0 (patch)
treefdd8cc98f4bec2901225a38c09f8375418623d98 /lldb/source/Core/Debugger.cpp
parentb8b49ec92bd33b3158f9bf0a74165ac6334f4136 (diff)
downloadbcm5719-llvm-c809cbcf4d8fcef88f5aa65c1be65e43a53859a0.tar.gz
bcm5719-llvm-c809cbcf4d8fcef88f5aa65c1be65e43a53859a0.zip
Fixed a crasher when handling process events that is due to a translation from the public API to the private API.
llvm-svn: 200267
Diffstat (limited to 'lldb/source/Core/Debugger.cpp')
-rw-r--r--lldb/source/Core/Debugger.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp
index 867e1de68e5..dc7d30bc00d 100644
--- a/lldb/source/Core/Debugger.cpp
+++ b/lldb/source/Core/Debugger.cpp
@@ -2871,7 +2871,8 @@ Debugger::HandleProcessEvent (const EventSP &event_sp)
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)
{
OpenPOWER on IntegriCloud