Browse Source

Maybe a bit faster variable name search

merge-requests/365/head
eidheim 10 years ago
parent
commit
256f01fd9d
  1. 12
      src/debug.cc

12
src/debug.cc

@ -202,15 +202,11 @@ std::string Debug::get_value(const std::string &variable, const boost::filesyste
}
if(variable_value.empty()) {
//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;
auto value=values.GetValueAtIndex(value_index);
if(value.GetName()==variable) {
value.GetDescription(stream);
variable_value=stream.GetData();
break;
}
value.GetDescription(stream);
variable_value=stream.GetData();
}
}
}

Loading…
Cancel
Save