Debugger[CDB]: Add memory editing.

Add infrastructure for custom special stops with data.
This commit is contained in:
Friedemann Kleint
2011-02-28 14:33:35 +01:00
parent 6061f4bb48
commit e8d12ae464
4 changed files with 65 additions and 2 deletions

View File

@@ -252,6 +252,18 @@ BreakpointId parseBreakPoint(const GdbMi &gdbmi, BreakpointResponse *r,
return id;
}
QByteArray cdbWriteMemoryCommand(quint64 addr, const QByteArray &data)
{
QByteArray cmd;
ByteArrayInputStream str(cmd);
str.setIntegerBase(16);
str << "f " << addr << " L" << data.size();
const int count = data.size();
for (int i = 0 ; i < count ; i++ )
str << ' ' << int(data.at(i));
return cmd;
}
QString debugByteArray(const QByteArray &a)
{
QString rc;