|
|
|
@ -202,15 +202,11 @@ std::string Debug::get_value(const std::string &variable, const boost::filesyste |
|
|
|
} |
|
|
|
} |
|
|
|
if(variable_value.empty()) { |
|
|
|
if(variable_value.empty()) { |
|
|
|
//In case a variable is missing file and line number, only do check on name
|
|
|
|
//In case a variable is missing file and line number, only do check on name
|
|
|
|
for(uint32_t value_index=0;value_index<values.GetSize();value_index++) { |
|
|
|
auto value=frame.FindVariable(variable.c_str()); |
|
|
|
|
|
|
|
if(value.IsValid()) { |
|
|
|
lldb::SBStream stream; |
|
|
|
lldb::SBStream stream; |
|
|
|
auto value=values.GetValueAtIndex(value_index); |
|
|
|
value.GetDescription(stream); |
|
|
|
|
|
|
|
variable_value=stream.GetData(); |
|
|
|
if(value.GetName()==variable) { |
|
|
|
|
|
|
|
value.GetDescription(stream); |
|
|
|
|
|
|
|
variable_value=stream.GetData(); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|