summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Debugger.cpp
diff options
context:
space:
mode:
authorEnrico Granata <granata.enrico@gmail.com>2011-08-04 02:34:29 +0000
committerEnrico Granata <granata.enrico@gmail.com>2011-08-04 02:34:29 +0000
commit5dfd49ccba48bbfcfdfccf01deb0c513d113b180 (patch)
tree163387d8cd6c6f8453621c0e5994e72c789ddf3e /lldb/source/Core/Debugger.cpp
parent6fd87d5d33c677badffcab70b60e8dcc169de07e (diff)
downloadbcm5719-llvm-5dfd49ccba48bbfcfdfccf01deb0c513d113b180.tar.gz
bcm5719-llvm-5dfd49ccba48bbfcfdfccf01deb0c513d113b180.zip
New formatting symbol %# can be used in summary strings to get the "count of children" of a variable
- accordingly, the test cases for the synthetic providers for the std:: containers have been edited to use ${svar%#} instead of ${svar.len} to print out the count of elements ; the .len synthetic child has been removed from the synthetic providers The synthetic children providers for the std:: containers now return None when asked for children indexes >= num_children() Basic code to support filter names based on regular expressions (WIP) llvm-svn: 136862
Diffstat (limited to 'lldb/source/Core/Debugger.cpp')
-rw-r--r--lldb/source/Core/Debugger.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp
index 9442600a4d7..309afd4e87c 100644
--- a/lldb/source/Core/Debugger.cpp
+++ b/lldb/source/Core/Debugger.cpp
@@ -742,6 +742,8 @@ ScanFormatDescriptor(const char* var_name_begin,
// if this is an S, print the summary after all
else if (*format_name == 'S')
*val_obj_display = ValueObject::eDisplaySummary;
+ else if (*format_name == '#')
+ *val_obj_display = ValueObject::eDisplayChildrenCount;
else if (log)
log->Printf("%s is an error, leaving the previous value alone", format_name);
}
OpenPOWER on IntegriCloud