Commit 0ea64742 authored by hjk's avatar hjk

Debugger: Fix mixed+raw disassembly

(gdb) help diass mentions "/r" and "/m" but doesn't give a hint that
the combination is written as "/rm".

Change-Id: I8baf56bd1e3c36ec43945ba0d572575c9e5e7fd5
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 158ef19c
......@@ -3976,9 +3976,10 @@ void GdbEngine::fetchDisassembler(DisassemblerAgent *agent)
static inline QByteArray disassemblerCommand(const Location &location, bool mixed)
{
QByteArray command = "disassemble /r ";
QByteArray command = "disassemble /r";
if (mixed)
command += "/m ";
command += 'm';
command += ' ';
if (const quint64 address = location.address()) {
command += "0x";
command += QByteArray::number(address, 16);
......@@ -4006,7 +4007,7 @@ void GdbEngine::fetchDisassemblerByCliRangeMixed(const DisassemblerAgentCookie &
const quint64 address = ac.agent->address();
QByteArray start = QByteArray::number(address - 20, 16);
QByteArray end = QByteArray::number(address + 100, 16);
QByteArray cmd = "disassemble /r /m 0x" + start + ",0x" + end;
QByteArray cmd = "disassemble /rm 0x" + start + ",0x" + end;
postCommand(cmd, Discardable|ConsoleCommand,
CB(handleFetchDisassemblerByCliRangeMixed), QVariant::fromValue(ac));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment