We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4a1c364 + 6f6bd4c commit 37b2abaCopy full SHA for 37b2aba
lldb/source/Core/ValueObjectVariable.cpp
@@ -132,8 +132,11 @@ bool ValueObjectVariable::UpdateValue() {
132
if (variable->GetLocationIsConstantValueData()) {
133
// expr doesn't contain DWARF bytes, it contains the constant variable
134
// value bytes themselves...
135
- if (expr.GetExpressionData(m_data))
+ if (expr.GetExpressionData(m_data)) {
136
+ if (m_data.GetDataStart() && m_data.GetByteSize())
137
+ m_value.SetBytes(m_data.GetDataStart(), m_data.GetByteSize());
138
m_value.SetContext(Value::eContextTypeVariable, variable);
139
+ }
140
else
141
m_error.SetErrorString("empty constant data");
142
// constant bytes can't be edited - sorry
0 commit comments