From eb72dc7d7df20fa1f494eb63eb39b9759fc1e83d Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Fri, 10 Apr 2015 21:34:10 +0000 Subject: Allow the variable view to get synthetic values if they are available in "gui" mode. llvm-svn: 234642 --- lldb/source/Core/IOHandler.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'lldb/source/Core/IOHandler.cpp') 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; iGetValueObjectForFrameVariable (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); } -- cgit v1.2.3