diff options
author | Ashok Thirumurthi <ashok.thirumurthi@intel.com> | 2013-05-07 15:01:34 +0000 |
---|---|---|
committer | Ashok Thirumurthi <ashok.thirumurthi@intel.com> | 2013-05-07 15:01:34 +0000 |
commit | f5b92402bf1f9641aeaa5d1dc80fd3e88ff23116 (patch) | |
tree | 9024f5f03a2374b3f0881cd511839d65fe33256d /lldb/source/Target/Thread.cpp | |
parent | 954c6ef10f446f89236680962feac21fa48b189f (diff) | |
download | bcm5719-llvm-f5b92402bf1f9641aeaa5d1dc80fd3e88ff23116.tar.gz bcm5719-llvm-f5b92402bf1f9641aeaa5d1dc80fd3e88ff23116.zip |
Temporarily reverting r181091 and r181106 due to the vast test breakage on the Linux buildbots
while we develop a better understanding of how to manage the thread lists in a platform-independant fashion.
Reviewed by: Daniel Malea
llvm-svn: 181323
Diffstat (limited to 'lldb/source/Target/Thread.cpp')
-rw-r--r-- | lldb/source/Target/Thread.cpp | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/lldb/source/Target/Thread.cpp b/lldb/source/Target/Thread.cpp index 5096a91cf1f..a7e03a2a60d 100644 --- a/lldb/source/Target/Thread.cpp +++ b/lldb/source/Target/Thread.cpp @@ -357,24 +357,18 @@ lldb::StopInfoSP Thread::GetStopInfo () { ThreadPlanSP plan_sp (GetCompletedPlan()); - ProcessSP process_sp (GetProcess()); - const uint32_t stop_id = process_sp ? process_sp->GetStopID() : UINT32_MAX; if (plan_sp && plan_sp->PlanSucceeded()) - { return StopInfo::CreateStopReasonWithPlan (plan_sp, GetReturnValueObject()); - } else { - if ((m_thread_stop_reason_stop_id == stop_id) || // Stop info is valid, just return what we have (even if empty) - (m_actual_stop_info_sp && m_actual_stop_info_sp->IsValid())) // Stop info is valid, just return what we have - { + ProcessSP process_sp (GetProcess()); + if (process_sp + && m_actual_stop_info_sp + && m_actual_stop_info_sp->IsValid() + && m_thread_stop_reason_stop_id == process_sp->GetStopID()) return m_actual_stop_info_sp; - } else - { - GetPrivateStopReason (); - return m_actual_stop_info_sp; - } + return GetPrivateStopReason (); } } |