[Lldb-commits] [lldb] r132435 - /lldb/trunk/source/Commands/CommandObjectThread.cpp

Johnny Chen johnny.chen at apple.com
Wed Jun 1 16:19:52 PDT 2011


Author: johnny
Date: Wed Jun  1 18:19:52 2011
New Revision: 132435

URL: http://llvm.org/viewvc/llvm-project?rev=132435&view=rev
Log:
The 'thread backtrace all' logical branch had the if (thread->GetStatus()) condition inverted.

rdar://problem/9530511

Modified:
    lldb/trunk/source/Commands/CommandObjectThread.cpp

Modified: lldb/trunk/source/Commands/CommandObjectThread.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectThread.cpp?rev=132435&r1=132434&r2=132435&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectThread.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectThread.cpp Wed Jun  1 18:19:52 2011
@@ -186,10 +186,10 @@
             for (uint32_t i = 0; i < num_threads; i++)
             {
                 ThreadSP thread_sp = process->GetThreadList().GetThreadAtIndex(i);
-                if (thread_sp->GetStatus (strm,
-                                          m_options.m_start,
-                                          m_options.m_count,
-                                          num_frames_with_source))
+                if (!thread_sp->GetStatus (strm,
+                                           m_options.m_start,
+                                           m_options.m_count,
+                                           num_frames_with_source))
                 {
                     result.AppendErrorWithFormat ("error displaying backtrace for thread: \"0x%4.4x\"\n", i);
                     result.SetStatus (eReturnStatusFailed);





More information about the lldb-commits mailing list