diff options
| author | Enrico Granata <egranata@apple.com> | 2012-12-11 02:17:22 +0000 |
|---|---|---|
| committer | Enrico Granata <egranata@apple.com> | 2012-12-11 02:17:22 +0000 |
| commit | c953a6a5ebf58b58ee99196214512c468b035b39 (patch) | |
| tree | d331eae82b1d4a7b79b2af125bc10395ecf6767f /lldb/source/Core/ValueObject.cpp | |
| parent | 21d1e9e53d150055ead8866d3757cb6c85d02dc7 (diff) | |
| download | bcm5719-llvm-c953a6a5ebf58b58ee99196214512c468b035b39.tar.gz bcm5719-llvm-c953a6a5ebf58b58ee99196214512c468b035b39.zip | |
<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
Diffstat (limited to 'lldb/source/Core/ValueObject.cpp')
| -rw-r--r-- | lldb/source/Core/ValueObject.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Core/ValueObject.cpp b/lldb/source/Core/ValueObject.cpp index c95095f7c02..c24c8bb6aaf 100644 --- a/lldb/source/Core/ValueObject.cpp +++ b/lldb/source/Core/ValueObject.cpp @@ -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) |

