diff options
author | hjk <[email protected]> | 2010-03-23 14:48:07 +0100 |
---|---|---|
committer | hjk <[email protected]> | 2010-03-23 14:48:32 +0100 |
commit | 59af793953a8d80aa7e893121e71abac6f0ba132 (patch) | |
tree | a3db8e0c68214700f51018876e86c087c220eb53 /src | |
parent | a080b8df662e1a6b41bddb9cf54622a5385aaa9b (diff) |
debugger: polish address display. also remove the mostly unused 'stored' address
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/debugger/gdb/classicgdbengine.cpp | 2 | ||||
-rw-r--r-- | src/plugins/debugger/gdb/gdbengine.cpp | 7 | ||||
-rw-r--r-- | src/plugins/debugger/gdb/gdbengine.h | 1 | ||||
-rw-r--r-- | src/plugins/debugger/watchhandler.cpp | 2 | ||||
-rw-r--r-- | src/plugins/debugger/watchhandler.h | 1 | ||||
-rw-r--r-- | src/plugins/debugger/watchutils.cpp | 1 |
6 files changed, 0 insertions, 14 deletions
diff --git a/src/plugins/debugger/gdb/classicgdbengine.cpp b/src/plugins/debugger/gdb/classicgdbengine.cpp index d0179b6eff7..62f2f400f93 100644 --- a/src/plugins/debugger/gdb/classicgdbengine.cpp +++ b/src/plugins/debugger/gdb/classicgdbengine.cpp @@ -756,7 +756,6 @@ void GdbEngine::handleVarListChildrenHelperClassic(const GdbMi &item, setWatchDataType(data, item.findChild("type")); setWatchDataValue(data, item.findChild("value")); setWatchDataAddress(data, item.findChild("addr")); - setWatchDataSAddress(data, item.findChild("saddr")); data.setHasChildren(false); insertData(data); } else if (parent.iname.endsWith('.')) { @@ -780,7 +779,6 @@ void GdbEngine::handleVarListChildrenHelperClassic(const GdbMi &item, setWatchDataType(data, item.findChild("type")); setWatchDataValue(data, item.findChild("value")); setWatchDataAddress(data, item.findChild("addr")); - setWatchDataSAddress(data, item.findChild("saddr")); setWatchDataChildCount(data, item.findChild("numchild")); if (!manager()->watchHandler()->isExpandedIName(data.iname)) data.setChildrenUnneeded(); diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index 0f7f707f351..c98713de370 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -3184,12 +3184,6 @@ void GdbEngine::setWatchDataAddressHelper(WatchData &data, const QByteArray &add data.exp = "*(" + gdbQuoteTypes(data.type).toLatin1() + "*)" + data.addr; } -void GdbEngine::setWatchDataSAddress(WatchData &data, const GdbMi &mi) -{ - if (mi.isValid()) - data.saddr = mi.data(); -} - void GdbEngine::setAutoDerefPointers(const QVariant &on) { Q_UNUSED(on) @@ -3424,7 +3418,6 @@ void GdbEngine::handleChildren(const WatchData &data0, const GdbMi &item, item.findChild("valueencoded").data().toInt()); setWatchDataAddress(data, item.findChild("addr")); setWatchDataExpression(data, item.findChild("exp")); - setWatchDataSAddress(data, item.findChild("saddr")); setWatchDataValueEnabled(data, item.findChild("valueenabled")); setWatchDataValueEditable(data, item.findChild("valueeditable")); setWatchDataChildCount(data, item.findChild("numchild")); diff --git a/src/plugins/debugger/gdb/gdbengine.h b/src/plugins/debugger/gdb/gdbengine.h index 3d989194eb8..0c2de9a7b4b 100644 --- a/src/plugins/debugger/gdb/gdbengine.h +++ b/src/plugins/debugger/gdb/gdbengine.h @@ -534,7 +534,6 @@ private: ////////// Convenience Functions ////////// static void setWatchDataExpression(WatchData &data, const GdbMi &mi); static void setWatchDataAddress(WatchData &data, const GdbMi &mi); static void setWatchDataAddressHelper(WatchData &data, const QByteArray &addr); - static void setWatchDataSAddress(WatchData &data, const GdbMi &mi); }; } // namespace Internal diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp index ff7eab54fcb..6b92c0de57c 100644 --- a/src/plugins/debugger/watchhandler.cpp +++ b/src/plugins/debugger/watchhandler.cpp @@ -134,7 +134,6 @@ bool WatchData::isEqual(const WatchData &other) const && displayedType == other.displayedType && variable == other.variable && addr == other.addr - && saddr == other.saddr && framekey == other.framekey && hasChildren == other.hasChildren && valueEnabled == other.valueEnabled @@ -321,7 +320,6 @@ QString WatchData::toToolTip() const } formatToolTipRow(str, WatchHandler::tr("Value"), val); formatToolTipRow(str, WatchHandler::tr("Object Address"), addr); - formatToolTipRow(str, WatchHandler::tr("Stored Address"), saddr); formatToolTipRow(str, WatchHandler::tr("Internal ID"), iname); formatToolTipRow(str, WatchHandler::tr("Generation"), QString::number(generation)); diff --git a/src/plugins/debugger/watchhandler.h b/src/plugins/debugger/watchhandler.h index d3e4a3df43e..2fd672fb43e 100644 --- a/src/plugins/debugger/watchhandler.h +++ b/src/plugins/debugger/watchhandler.h @@ -132,7 +132,6 @@ public: QString displayedType;// Displayed type (optional) QByteArray variable; // Name of internal Gdb variable if created QByteArray addr; // Displayed address - QByteArray saddr; // Stored address (pointer in container) QString framekey; // Key for type cache QScriptValue scriptValue; // If needed... bool hasChildren; diff --git a/src/plugins/debugger/watchutils.cpp b/src/plugins/debugger/watchutils.cpp index bcb17050fee..a25568dcec0 100644 --- a/src/plugins/debugger/watchutils.cpp +++ b/src/plugins/debugger/watchutils.cpp @@ -1478,7 +1478,6 @@ static void gbdMiToWatchData(const GdbMi &root, if (gdbMiGetByteArrayValue(&b, root, "exp")) w.exp = b; gdbMiGetByteArrayValue(&w.addr, root, "addr"); - gdbMiGetByteArrayValue(&w.saddr, root, "saddr"); gdbMiGetBoolValue(&w.valueEnabled, root, "valueenabled"); gdbMiGetBoolValue(&w.valueEditable, root, "valueeditable"); if (gdbMiGetStringValue(&v, root, "valuetooltip", "valuetooltipencoded")) |