Fix a small issue with -var-update.

If the variable was a pointer, code was ignoring the change in the
pointee.

Discussed in
http://lists.llvm.org/pipermail/lldb-dev/2017-May/012435.html

llvm-svn: 304400
This commit is contained in:
Hafiz Abid Qadeer 2017-06-01 10:33:13 +00:00
parent 183d1368f3
commit f64177ea83
1 changed files with 12 additions and 14 deletions

View File

@ -510,7 +510,7 @@ bool CMICmdCmdVarUpdate::ExamineSBValueForChange(lldb::SBValue &vrwValue,
}
lldb::SBType valueType = vrwValue.GetType();
if (!valueType.IsPointerType() && !valueType.IsReferenceType()) {
const MIuint nChildren = vrwValue.GetNumChildren();
for (MIuint i = 0; i < nChildren; ++i) {
lldb::SBValue member = vrwValue.GetChildAtIndex(i);
@ -524,8 +524,6 @@ bool CMICmdCmdVarUpdate::ExamineSBValueForChange(lldb::SBValue &vrwValue,
// Handle composite types (i.e. struct or arrays)
return MIstatus::success;
}
}
vrwbChanged = false;
return MIstatus::success;
}