debugger: enable modification of std::string and QString

This commit is contained in:
hjk
2011-05-10 18:58:06 +02:00
parent 4871f81894
commit 587a2c3a2a
7 changed files with 95 additions and 14 deletions

View File

@@ -373,6 +373,16 @@ GdbMi GdbMi::findChild(const char *name) const
return GdbMi();
}
qulonglong GdbMi::toAddress() const
{
QByteArray ba = m_data;
if (ba.endsWith('L'))
ba.chop(1);
if (ba.startsWith('*') || ba.startsWith('@'))
ba = ba.mid(1);
return ba.toULongLong(0, 16);
}
//////////////////////////////////////////////////////////////////////////////////
//
// GdbResponse