Debugger[CDB]: Fix disassembler for lines with no offset.

Also add function lines as comment.
Fix offset display.
This commit is contained in:
Friedemann Kleint
2011-04-13 14:31:39 +02:00
parent 292119bb6a
commit 0565acf300
2 changed files with 23 additions and 18 deletions

View File

@@ -187,7 +187,7 @@ QString DisassemblerLine::toString() const
if (address)
str += _("0x%1 ").arg(address, 0, 16);
if (offset)
str += _("<+0x%1> ").arg(offset, 4, 10, QLatin1Char('0'));
str += _("<+0x%1> ").arg(offset, 4, 16, QLatin1Char('0'));
str += _(" ");
str += data;
} else if (isCode()) {