From 06a78b6264ee043887e8f842f8b1812794406d96 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Sat, 4 Aug 2018 22:43:06 +0300 Subject: [PATCH] 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 --- src/plugins/debugger/disassemblerlines.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/debugger/disassemblerlines.cpp b/src/plugins/debugger/disassemblerlines.cpp index 8e9baea381d..544f14f8b2a 100644 --- a/src/plugins/debugger/disassemblerlines.cpp +++ b/src/plugins/debugger/disassemblerlines.cpp @@ -218,9 +218,9 @@ QString DisassemblerLine::toString(int maxOp) const if (address) str += QString("0x%1 ").arg(address, 0, 16); if (offset) - str += QString("<+0x%2> ").arg(offset, 4, 16, QLatin1Char('0')); + str += QString("<+%1> ").arg(offset, 5); else - str += " "; + str += " "; str += QString(" %1 ").arg(bytes); str += QString(maxOp - bytes.size(), QLatin1Char(' ')); str += data;