Unable to change the value of a variable while debugging Symbian - issue fixed

Reviewed-by: hjk
This commit is contained in:
Pawel Polanski
2010-10-01 18:37:30 +02:00
parent d40007938c
commit cbdf363709
3 changed files with 42 additions and 2 deletions

View File

@@ -548,7 +548,7 @@ QVector<QByteArray> gdbStartupSequence()
} // namespace Symbian
// Generic gdb server helpers: Read address/length off a memory
// command like 'm845,455','X845,455'
// command like 'm845,455','X845,455:'
QPair<quint64, unsigned> parseGdbReadMemoryRequest(const QByteArray &cmd)
{
QPair<quint64, unsigned> rc(0, 0);
@@ -559,7 +559,11 @@ QPair<quint64, unsigned> parseGdbReadMemoryRequest(const QByteArray &cmd)
rc.first = cmd.mid(1, pos - 1).toULongLong(&ok, 16);
if (!ok)
return rc;
rc.second = cmd.mid(pos + 1).toUInt(&ok, 16);
const int colonPos = cmd.indexOf(':');
if (colonPos == -1)
rc.second = cmd.mid(pos + 1).toUInt(&ok, 16);
else
rc.second = cmd.mid(pos + 1, colonPos - pos - 1 ).toUInt(&ok, 16);
if (!ok)
rc.first = 0;
return rc;