diff options
| author | Enrico Granata <granata.enrico@gmail.com> | 2011-08-04 02:34:29 +0000 |
|---|---|---|
| committer | Enrico Granata <granata.enrico@gmail.com> | 2011-08-04 02:34:29 +0000 |
| commit | 5dfd49ccba48bbfcfdfccf01deb0c513d113b180 (patch) | |
| tree | 163387d8cd6c6f8453621c0e5994e72c789ddf3e /lldb/source/Core/FormatClasses.cpp | |
| parent | 6fd87d5d33c677badffcab70b60e8dcc169de07e (diff) | |
| download | bcm5719-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/FormatClasses.cpp')
| -rw-r--r-- | lldb/source/Core/FormatClasses.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/FormatClasses.cpp b/lldb/source/Core/FormatClasses.cpp index 48097087253..aeace975932 100644 --- a/lldb/source/Core/FormatClasses.cpp +++ b/lldb/source/Core/FormatClasses.cpp @@ -84,7 +84,7 @@ StringSummaryFormat::FormatObject(lldb::ValueObjectSP object) s.PutCString(", "); s.PutCString(child_sp.get()->GetName().AsCString()); s.PutChar('='); - s.PutCString(child_sp.get()->GetPrintableRepresentation()); + child_sp.get()->GetPrintableRepresentation(s); } } |

