mirror of
https://github.com/intel/llvm.git
synced 2026-01-21 12:19:23 +08:00
<rdar://problem/12639506>
Make sure that the user's choice of a format for dumping aggregate types is persisted to child members llvm-svn: 169809
This commit is contained in:
@@ -1242,7 +1242,7 @@ ValueObject::GetValueAsCString ()
|
||||
if (UpdateValueIfNeeded(true) && m_value_str.empty())
|
||||
{
|
||||
lldb::Format my_format = GetFormat();
|
||||
if (m_format == lldb::eFormatDefault)
|
||||
if (my_format == lldb::eFormatDefault)
|
||||
{
|
||||
if (m_type_format_sp)
|
||||
my_format = m_type_format_sp->GetFormat();
|
||||
@@ -3428,7 +3428,7 @@ DumpValueObject_Impl (Stream &s,
|
||||
}
|
||||
|
||||
ValueObject::DumpValueObjectOptions child_options(options);
|
||||
child_options.SetFormat().SetSummary().SetRootValueObjectName();
|
||||
child_options.SetFormat(options.m_format).SetSummary().SetRootValueObjectName();
|
||||
child_options.SetScopeChecked(true)
|
||||
.SetOmitSummaryDepth(child_options.m_omit_summary_depth > 1 ? child_options.m_omit_summary_depth - 1 : 0);
|
||||
for (uint32_t idx=0; idx<num_children; ++idx)
|
||||
|
||||
Reference in New Issue
Block a user