Debugger: Sanitize Datatypes, part 2: Stackframes.

Make address a quint64. Enable DisassemblerViewAgent
to match the disassembly-addresses by converting the numbers,
making it more robust. Remove the complicated formatting needed
for CDB.
This commit is contained in:
Friedemann Kleint
2010-09-21 15:12:33 +02:00
parent 0e318bfcf5
commit 1d978a3618
12 changed files with 106 additions and 129 deletions

View File

@@ -117,7 +117,9 @@ QVariant StackHandler::data(const QModelIndex &index, int role) const
case 3: // Line number
return frame.line;
case 4: // Address
return frame.address;
if (frame.address)
return QString::fromAscii("0x%1").arg(frame.address, 0, 16);
return QString();
}
return QVariant();
}
@@ -225,7 +227,7 @@ void StackHandler::setFrames(const StackFrames &frames, bool canExpand)
reset();
}
StackFrames StackHandler::frames() const
const StackFrames &StackHandler::frames() const
{
return m_stackFrames;
}