summaryrefslogtreecommitdiffstats
path: root/lldb/source
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2015-03-12 22:17:07 +0000
committerEnrico Granata <egranata@apple.com>2015-03-12 22:17:07 +0000
commit495dccd67f94e791d9b84fdcac1cdea4f303ea71 (patch)
tree8bf0089a68eba1bb8fc5b1f490a1f1532820ca95 /lldb/source
parent3fa6dc904a58c8433add5576025e48eab8cbad10 (diff)
downloadbcm5719-llvm-495dccd67f94e791d9b84fdcac1cdea4f303ea71.tar.gz
bcm5719-llvm-495dccd67f94e791d9b84fdcac1cdea4f303ea71.zip
Fix a bug in the data formatters where summary strings would not look into the non-synthetic value for child members if the ValueObject being formatted happened to have a synthetic value
rdar://15630776 llvm-svn: 232114
Diffstat (limited to 'lldb/source')
-rw-r--r--lldb/source/Core/FormatEntity.cpp2
-rw-r--r--lldb/source/DataFormatters/LibCxx.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Core/FormatEntity.cpp b/lldb/source/Core/FormatEntity.cpp
index 20190bbdb85..ef3711044eb 100644
--- a/lldb/source/Core/FormatEntity.cpp
+++ b/lldb/source/Core/FormatEntity.cpp
@@ -766,7 +766,7 @@ DumpValue (Stream &s,
ValueObject::ExpressionPathAftermath what_next = (do_deref_pointer ?
ValueObject::eExpressionPathAftermathDereference : ValueObject::eExpressionPathAftermathNothing);
ValueObject::GetValueForExpressionPathOptions options;
- options.DontCheckDotVsArrowSyntax().DoAllowBitfieldSyntax().DoAllowFragileIVar().DoAllowSyntheticChildren();
+ options.DontCheckDotVsArrowSyntax().DoAllowBitfieldSyntax().DoAllowFragileIVar().SetSyntheticChildrenTraversal(ValueObject::GetValueForExpressionPathOptions::SyntheticChildrenTraversal::Both);
ValueObject* target = NULL;
const char* var_name_final_if_array_range = NULL;
size_t close_bracket_index = llvm::StringRef::npos;
diff --git a/lldb/source/DataFormatters/LibCxx.cpp b/lldb/source/DataFormatters/LibCxx.cpp
index 728ad84341f..5bbf53d2e1c 100644
--- a/lldb/source/DataFormatters/LibCxx.cpp
+++ b/lldb/source/DataFormatters/LibCxx.cpp
@@ -266,7 +266,7 @@ lldb_private::formatters::LibCxxMapIteratorSyntheticFrontEnd::Update()
NULL,
NULL,
NULL,
- ValueObject::GetValueForExpressionPathOptions().DontCheckDotVsArrowSyntax().DontAllowSyntheticChildren(),
+ ValueObject::GetValueForExpressionPathOptions().DontCheckDotVsArrowSyntax().SetSyntheticChildrenTraversal(ValueObject::GetValueForExpressionPathOptions::SyntheticChildrenTraversal::None),
NULL).get();
return false;
OpenPOWER on IntegriCloud