[Lldb-commits] [lldb] r234642 - Allow the variable view to get synthetic values if they are available in "gui" mode.
Greg Clayton
gclayton at apple.com
Fri Apr 10 14:34:10 PDT 2015
Author: gclayton
Date: Fri Apr 10 16:34:10 2015
New Revision: 234642
URL: http://llvm.org/viewvc/llvm-project?rev=234642&view=rev
Log:
Allow the variable view to get synthetic values if they are available in "gui" mode.
Modified:
lldb/trunk/source/Core/IOHandler.cpp
Modified: lldb/trunk/source/Core/IOHandler.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/IOHandler.cpp?rev=234642&r1=234641&r2=234642&view=diff
==============================================================================
--- lldb/trunk/source/Core/IOHandler.cpp (original)
+++ lldb/trunk/source/Core/IOHandler.cpp Fri Apr 10 16:34:10 2015
@@ -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);
}
More information about the lldb-commits
mailing list