debugger: make original value of automatically dereferenced pointer accessible

This commit is contained in:
hjk
2011-04-06 18:39:56 +02:00
parent 5a2c64b482
commit cd9aec6df9
6 changed files with 32 additions and 4 deletions

View File

@@ -1349,6 +1349,11 @@ void setWatchDataAddress(WatchData &data, const GdbMi &mi)
setWatchDataAddressHelper(data, mi.data());
}
void setWatchDataOrigAddress(WatchData &data, const GdbMi &mi)
{
data.origAddress = mi.data().toULongLong(0, 16);
}
void setWatchDataSize(WatchData &data, const GdbMi &mi)
{
if (mi.isValid()) {
@@ -1418,6 +1423,7 @@ void parseWatchData(const QSet<QByteArray> &expandedINames,
setWatchDataValue(data, item);
setWatchDataAddress(data, item.findChild("addr"));
setWatchDataOrigAddress(data, item.findChild("origaddr"));
setWatchDataSize(data, item.findChild("size"));
setWatchDataExpression(data, item.findChild("exp"));
setWatchDataValueEnabled(data, item.findChild("valueenabled"));