Breakpoint::Description with eDescriptionLevelBrief should just print the number of locations, printing the list of locations is pointless.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@131333 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Breakpoint/Breakpoint.cpp b/source/Breakpoint/Breakpoint.cpp
index 0709c18..acc1a12 100644
--- a/source/Breakpoint/Breakpoint.cpp
+++ b/source/Breakpoint/Breakpoint.cpp
@@ -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)