Debugger: Add size to watch data.

Have CDB report it, pass it on to adding watches.
This commit is contained in:
Friedemann Kleint
2011-04-04 16:15:03 +02:00
parent e5f72538d0
commit 122f6a1845
9 changed files with 30 additions and 5 deletions

View File

@@ -145,6 +145,7 @@ WatchData::WatchData() :
state(InitialState),
editformat(0),
address(0),
size(0),
bitpos(0),
bitsize(0),
generation(-1),
@@ -170,6 +171,7 @@ bool WatchData::isEqual(const WatchData &other) const
&& displayedType == other.displayedType
&& variable == other.variable
&& address == other.address
&& size == other.size
&& hasChildren == other.hasChildren
&& valueEnabled == other.valueEnabled
&& valueEditable == other.valueEditable
@@ -370,6 +372,9 @@ QString WatchData::toToolTip() const
formatToolTipRow(str, tr("Value"), val);
formatToolTipRow(str, tr("Object Address"),
QString::fromAscii(hexAddress()));
if (size)
formatToolTipRow(str, tr("Size"),
QString::number(size));
formatToolTipRow(str, tr("Internal ID"), iname);
formatToolTipRow(str, tr("Generation"),
QString::number(generation));