[Lldb-commits] [PATCH] [ValueObjectPrinter::GetValueSummaryError] Get summary of non-synthetic values.

Siva Chandra sivachandra at google.com
Mon Jun 22 17:43:54 PDT 2015


Hi clayborg, granata.enrico,

Without the change, the SBValue object passed to the type summary
script will have a backing synthetic value without any way for the
script to get the non-synthetic values.

http://reviews.llvm.org/D10624

Files:
  source/DataFormatters/ValueObjectPrinter.cpp

Index: source/DataFormatters/ValueObjectPrinter.cpp
===================================================================
--- source/DataFormatters/ValueObjectPrinter.cpp
+++ source/DataFormatters/ValueObjectPrinter.cpp
@@ -354,10 +354,10 @@
         {
             TypeSummaryImpl* entry = GetSummaryFormatter();
             if (entry)
-                m_valobj->GetSummaryAsCString(entry, summary);
+                m_valobj->GetNonSyntheticValue()->GetSummaryAsCString(entry, summary);
             else
             {
-                const char* sum_cstr = m_valobj->GetSummaryAsCString();
+                const char* sum_cstr = m_valobj->GetNonSyntheticValue()->GetSummaryAsCString();
                 if (sum_cstr)
                     summary.assign(sum_cstr);
             }

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10624.28181.patch
Type: text/x-patch
Size: 784 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150623/2bb8bbf2/attachment.bin>


More information about the lldb-commits mailing list