summaryrefslogtreecommitdiffstats
path: root/lldb/source/DataFormatters/ValueObjectPrinter.cpp
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2014-10-09 18:47:36 +0000
committerEnrico Granata <egranata@apple.com>2014-10-09 18:47:36 +0000
commitddac7611eefbf4015cb93a94d58396767adbef26 (patch)
tree06efa546061ec868522001382c1f761e0b54b84f /lldb/source/DataFormatters/ValueObjectPrinter.cpp
parent55f66f77fe7612966bc7503679fbe38c1cab6e62 (diff)
downloadbcm5719-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.cpp5
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)
OpenPOWER on IntegriCloud