[Lldb-commits] [lldb] r131333 - /lldb/trunk/source/Breakpoint/Breakpoint.cpp

Jim Ingham jingham at apple.com
Fri May 13 18:11:02 PDT 2011


Author: jingham
Date: Fri May 13 20:11:02 2011
New Revision: 131333

URL: http://llvm.org/viewvc/llvm-project?rev=131333&view=rev
Log:
Breakpoint::Description with eDescriptionLevelBrief should just print the number of locations, printing the list of locations is pointless.

Modified:
    lldb/trunk/source/Breakpoint/Breakpoint.cpp

Modified: lldb/trunk/source/Breakpoint/Breakpoint.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Breakpoint/Breakpoint.cpp?rev=131333&r1=131332&r2=131333&view=diff
==============================================================================
--- lldb/trunk/source/Breakpoint/Breakpoint.cpp (original)
+++ lldb/trunk/source/Breakpoint/Breakpoint.cpp Fri May 13 20:11:02 2011
@@ -420,7 +420,9 @@
         break;
     }
 
-    if (show_locations)
+    // The brief description is just the location name (1.2 or whatever).  That's pointless to
+    // show in the breakpoint's description, so suppress it.
+    if (show_locations && level != lldb::eDescriptionLevelBrief)
     {
         s->IndentMore();
         for (size_t i = 0; i < num_locations; ++i)





More information about the lldb-commits mailing list