diff options
author | Enrico Granata <egranata@apple.com> | 2014-01-08 01:36:59 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2014-01-08 01:36:59 +0000 |
commit | 0dba9b33f0165a874e5bc05d7735293c52a7d250 (patch) | |
tree | 1450b1ba0067d29ef1a60ab972b1eeb6b0a94d58 /lldb/source/Core/ValueObject.cpp | |
parent | 8bcc086e586413b5f32385fca0a8f0c98c0ec1ca (diff) | |
download | bcm5719-llvm-0dba9b33f0165a874e5bc05d7735293c52a7d250.tar.gz bcm5719-llvm-0dba9b33f0165a874e5bc05d7735293c52a7d250.zip |
New and improved data formatter for std::shared_ptr<> and std::weak_ptr<>
llvm-svn: 198724
Diffstat (limited to 'lldb/source/Core/ValueObject.cpp')
-rw-r--r-- | lldb/source/Core/ValueObject.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lldb/source/Core/ValueObject.cpp b/lldb/source/Core/ValueObject.cpp index 56ac7e134ab..dbaab518bdc 100644 --- a/lldb/source/Core/ValueObject.cpp +++ b/lldb/source/Core/ValueObject.cpp @@ -1546,7 +1546,8 @@ bool ValueObject::DumpPrintableRepresentation(Stream& s, ValueObjectRepresentationStyle val_obj_display, Format custom_format, - PrintableRepresentationSpecialCases special) + PrintableRepresentationSpecialCases special, + bool do_dump_error) { Flags flags(GetTypeInfo()); @@ -1745,7 +1746,12 @@ ValueObject::DumpPrintableRepresentation(Stream& s, else { if (m_error.Fail()) - s.Printf("<%s>", m_error.AsCString()); + { + if (do_dump_error) + s.Printf("<%s>", m_error.AsCString()); + else + return false; + } else if (val_obj_display == eValueObjectRepresentationStyleSummary) s.PutCString("<no summary available>"); else if (val_obj_display == eValueObjectRepresentationStyleValue) |