From 73e8c4d09cf5a0497bc34b4f7c7206c59ae35669 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Wed, 7 Oct 2015 02:36:35 +0000 Subject: Route the preferred-display-language mechanism to the ValueObjectPrinter and actually fill in a few gaps for dynamic and synthetic values to be able to adopt this in useful ways llvm-svn: 249507 --- lldb/source/DataFormatters/ValueObjectPrinter.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lldb/source/DataFormatters/ValueObjectPrinter.cpp') diff --git a/lldb/source/DataFormatters/ValueObjectPrinter.cpp b/lldb/source/DataFormatters/ValueObjectPrinter.cpp index 2d122dba4cd..63fb6cc46d3 100644 --- a/lldb/source/DataFormatters/ValueObjectPrinter.cpp +++ b/lldb/source/DataFormatters/ValueObjectPrinter.cpp @@ -26,6 +26,7 @@ DumpValueObjectOptions() { m_use_dynamic = valobj.GetDynamicValueType(); m_use_synthetic = valobj.IsSynthetic(); + m_varformat_language = valobj.GetPreferredDisplayLanguage(); } ValueObjectPrinter::ValueObjectPrinter (ValueObject* valobj, @@ -354,10 +355,10 @@ ValueObjectPrinter::GetValueSummaryError (std::string& value, { TypeSummaryImpl* entry = GetSummaryFormatter(); if (entry) - m_valobj->GetSummaryAsCString(entry, summary); + m_valobj->GetSummaryAsCString(entry, summary, options.m_varformat_language); else { - const char* sum_cstr = m_valobj->GetSummaryAsCString(); + const char* sum_cstr = m_valobj->GetSummaryAsCString(options.m_varformat_language); if (sum_cstr) summary.assign(sum_cstr); } -- cgit v1.2.3