Commit 59212b66 authored by hjk's avatar hjk
Browse files

debugger: better formatting of assembler lines

parent 00961969
...@@ -4100,6 +4100,12 @@ DisassemblerLines GdbEngine::parseCliDisassembler(const GdbMi &output) ...@@ -4100,6 +4100,12 @@ DisassemblerLines GdbEngine::parseCliDisassembler(const GdbMi &output)
} }
line.replace(pos1, pos2 - pos1, ""); line.replace(pos1, pos2 - pos1, "");
} }
if (pos3 - pos2 == 1)
line.insert(pos2 + 1, "000");
if (pos3 - pos2 == 2)
line.insert(pos2 + 1, "00");
if (pos3 - pos2 == 3)
line.insert(pos2 + 1, "0");
dlines.appendLine(DisassemblerLine(_(line))); dlines.appendLine(DisassemblerLine(_(line)));
continue; continue;
} }
......
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