diff options
author | Enrico Granata <egranata@apple.com> | 2014-10-09 18:47:36 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2014-10-09 18:47:36 +0000 |
commit | ddac7611eefbf4015cb93a94d58396767adbef26 (patch) | |
tree | 06efa546061ec868522001382c1f761e0b54b84f /lldb/source/DataFormatters/ValueObjectPrinter.cpp | |
parent | 55f66f77fe7612966bc7503679fbe38c1cab6e62 (diff) | |
download | bcm5719-llvm-ddac7611eefbf4015cb93a94d58396767adbef26.tar.gz bcm5719-llvm-ddac7611eefbf4015cb93a94d58396767adbef26.zip |
If a ValueObject has a child that vends synthetic children, but only does so to generate a value for itself, that's not a disqualifier from one-line printing. Also, fetch synthetic values if available and requested for children as well while printing them
llvm-svn: 219427
Diffstat (limited to 'lldb/source/DataFormatters/ValueObjectPrinter.cpp')
-rw-r--r-- | lldb/source/DataFormatters/ValueObjectPrinter.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lldb/source/DataFormatters/ValueObjectPrinter.cpp b/lldb/source/DataFormatters/ValueObjectPrinter.cpp index 126ff78c389..e7bebcbeb4f 100644 --- a/lldb/source/DataFormatters/ValueObjectPrinter.cpp +++ b/lldb/source/DataFormatters/ValueObjectPrinter.cpp @@ -591,9 +591,8 @@ ValueObjectPrinter::PrintChildrenOneLiner (bool hide_names) for (uint32_t idx=0; idx<num_children; ++idx) { lldb::ValueObjectSP child_sp(synth_m_valobj->GetChildAtIndex(idx, true)); - lldb::ValueObjectSP child_dyn_sp = child_sp.get() ? child_sp->GetDynamicValue(options.m_use_dynamic) : child_sp; - if (child_dyn_sp) - child_sp = child_dyn_sp; + if (child_sp) + child_sp = child_sp->GetQualifiedRepresentationIfAvailable(options.m_use_dynamic, options.m_use_synthetic); if (child_sp) { if (idx) |