summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectThread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Commands/CommandObjectThread.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectThread.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/lldb/source/Commands/CommandObjectThread.cpp b/lldb/source/Commands/CommandObjectThread.cpp
index 8f49237767f..380aaa5a969 100644
--- a/lldb/source/Commands/CommandObjectThread.cpp
+++ b/lldb/source/Commands/CommandObjectThread.cpp
@@ -50,14 +50,8 @@ lldb_private::DisplayThreadInfo
{
if (only_threads_with_stop_reason)
{
- StopReason thread_stop_reason = eStopReasonNone;
- Thread::StopInfo thread_stop_info;
- if (thread->GetStopInfo(&thread_stop_info))
- {
- thread_stop_reason = thread_stop_info.GetStopReason();
- if (thread_stop_reason == eStopReasonNone)
- return false;
- }
+ if (thread->GetStopInfo() == NULL)
+ return false;
}
strm.Indent();
OpenPOWER on IntegriCloud