Debugger: Use decimal offset in disassembler view

Jump directives are with decimal offset, at least on intel platforms. It is
hard to track the jump target.

Change-Id: I855068ea7470581667a541a54bb24193ec989dd4
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Orgad Shaneh
2018-08-04 22:43:06 +03:00
committed by Orgad Shaneh
parent e21b146776
commit 06a78b6264

View File

@@ -218,7 +218,7 @@ QString DisassemblerLine::toString(int maxOp) const
if (address) if (address)
str += QString("0x%1 ").arg(address, 0, 16); str += QString("0x%1 ").arg(address, 0, 16);
if (offset) if (offset)
str += QString("<+0x%2> ").arg(offset, 4, 16, QLatin1Char('0')); str += QString("<+%1> ").arg(offset, 5);
else else
str += " "; str += " ";
str += QString(" %1 ").arg(bytes); str += QString(" %1 ").arg(bytes);