diff options
author | Greg Clayton <gclayton@apple.com> | 2015-04-10 21:34:10 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2015-04-10 21:34:10 +0000 |
commit | eb72dc7d7df20fa1f494eb63eb39b9759fc1e83d (patch) | |
tree | f3d1dd1f999c230b8907deb4c4e0d36f5eb7765d /lldb/source/Core/IOHandler.cpp | |
parent | aa7b304ea7788ecd95856570c88d4ecfafeae475 (diff) | |
download | bcm5719-llvm-eb72dc7d7df20fa1f494eb63eb39b9759fc1e83d.tar.gz bcm5719-llvm-eb72dc7d7df20fa1f494eb63eb39b9759fc1e83d.zip |
Allow the variable view to get synthetic values if they are available in "gui" mode.
llvm-svn: 234642
Diffstat (limited to 'lldb/source/Core/IOHandler.cpp')
-rw-r--r-- | lldb/source/Core/IOHandler.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lldb/source/Core/IOHandler.cpp b/lldb/source/Core/IOHandler.cpp index f01f0577bc2..13099d0ebfd 100644 --- a/lldb/source/Core/IOHandler.cpp +++ b/lldb/source/Core/IOHandler.cpp @@ -3951,6 +3951,7 @@ public: return true; // Don't do any updating when we are running } } + ValueObjectList local_values; if (frame_block) @@ -3966,7 +3967,18 @@ public: const DynamicValueType use_dynamic = eDynamicDontRunTarget; const size_t num_locals = locals->GetSize(); for (size_t i=0; i<num_locals; ++i) - local_values.Append(frame->GetValueObjectForFrameVariable (locals->GetVariableAtIndex(i), use_dynamic)); + { + ValueObjectSP value_sp = frame->GetValueObjectForFrameVariable (locals->GetVariableAtIndex(i), use_dynamic); + if (value_sp) + { + ValueObjectSP synthetic_value_sp = value_sp->GetSyntheticValue(); + if (synthetic_value_sp) + local_values.Append(synthetic_value_sp); + else + local_values.Append(value_sp); + + } + } // Update the values SetValues(local_values); } |