summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectFrame.cpp
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2015-11-19 22:28:58 +0000
committerEnrico Granata <egranata@apple.com>2015-11-19 22:28:58 +0000
commit46252398f012414616052a4d5a15a87cb0fbf6f7 (patch)
tree890f5762d5f0d23ab6b7edd891f5745a3926db3a /lldb/source/Commands/CommandObjectFrame.cpp
parent379cc5e71b2b6deb1e88240994761358741d2c9f (diff)
downloadbcm5719-llvm-46252398f012414616052a4d5a15a87cb0fbf6f7.tar.gz
bcm5719-llvm-46252398f012414616052a4d5a15a87cb0fbf6f7.zip
Fix up LLDB for a change in the way clang represents anonymous unions such that the 'frame variable' command can still find the members of such union as if they were top-level variables in the current scope
llvm-svn: 253613
Diffstat (limited to 'lldb/source/Commands/CommandObjectFrame.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectFrame.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectFrame.cpp b/lldb/source/Commands/CommandObjectFrame.cpp
index 176e38073b0..e8dc33a8140 100644
--- a/lldb/source/Commands/CommandObjectFrame.cpp
+++ b/lldb/source/Commands/CommandObjectFrame.cpp
@@ -478,7 +478,8 @@ protected:
{
Error error;
uint32_t expr_path_options = StackFrame::eExpressionPathOptionCheckPtrVsMember |
- StackFrame::eExpressionPathOptionsAllowDirectIVarAccess;
+ StackFrame::eExpressionPathOptionsAllowDirectIVarAccess |
+ StackFrame::eExpressionPathOptionsInspectAnonymousUnions;
lldb::VariableSP var_sp;
valobj_sp = frame->GetValueForVariableExpressionPath (name_cstr,
m_varobj_options.use_dynamic,
OpenPOWER on IntegriCloud