[Lldb-commits] [lldb] r136052 - in /lldb/trunk/source: Commands/CommandObjectThread.cpp Target/Thread.cpp

Jim Ingham jingham at apple.com
Mon Jul 25 19:39:59 PDT 2011


Author: jingham
Date: Mon Jul 25 21:39:59 2011
New Revision: 136052

URL: http://llvm.org/viewvc/llvm-project?rev=136052&view=rev
Log:
Indent the frames in the "thread.GetStatus" frame listing.  Also put the same space after each thread listing for "thread backtrace all" as "thread backtrace 1 3 5"

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

Modified: lldb/trunk/source/Commands/CommandObjectThread.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectThread.cpp?rev=136052&r1=136051&r2=136052&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectThread.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectThread.cpp Mon Jul 25 21:39:59 2011
@@ -196,6 +196,10 @@
                     result.SetStatus (eReturnStatusFailed);
                     return false;
                 }
+                
+                if (i < num_threads - 1)
+                    result.AppendMessage("");
+                    
             }
         }
         else

Modified: lldb/trunk/source/Target/Thread.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Thread.cpp?rev=136052&r1=136051&r2=136052&view=diff
==============================================================================
--- lldb/trunk/source/Target/Thread.cpp (original)
+++ lldb/trunk/source/Target/Thread.cpp Mon Jul 25 21:39:59 2011
@@ -1126,6 +1126,7 @@
         const bool show_frame_info = true;
         const uint32_t source_lines_before = 3;
         const uint32_t source_lines_after = 3;
+        strm.IndentMore ();
         num_frames_shown = GetStackFrameList ().GetStatus (strm, 
                                                            start_frame, 
                                                            num_frames, 
@@ -1134,6 +1135,7 @@
                                                            source_lines_before,
                                                            source_lines_after);
         strm.IndentLess();
+        strm.IndentLess();
     }
     return num_frames_shown;
 }





More information about the lldb-commits mailing list