aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-01-29 19:08:53 +0000
committerIan Lance Taylor <ian@airs.com>1997-01-29 19:08:53 +0000
commit0948199a7b45e3927dd7ae913cd42f56037091da (patch)
treef35fbff3dca513eaa113ef0465fa7e9c49bd3ff6 /binutils
parent54f74247cb70b5d506de0143d464e1cded1b8085 (diff)
downloadgdb-0948199a7b45e3927dd7ae913cd42f56037091da.zip
gdb-0948199a7b45e3927dd7ae913cd42f56037091da.tar.gz
gdb-0948199a7b45e3927dd7ae913cd42f56037091da.tar.bz2
tweak last change
Diffstat (limited to 'binutils')
-rw-r--r--binutils/objdump.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/binutils/objdump.c b/binutils/objdump.c
index b81e866..0a51750 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -1198,10 +1198,18 @@ disassemble_bytes (info, disassemble_fn, insns, data, start, stop, relppp,
while (pb < bytes)
{
long j;
+ char *s;
putchar ('\n');
j = i + pb;
- printf ("%6lx:\t", (unsigned long) (j - start));
+
+ sprintf_vma (buf, section->vma + j);
+ for (s = buf + skip_addr_chars; *s == '0'; s++)
+ *s = ' ';
+ if (*s == '\0')
+ *--s = '0';
+ printf ("%s:\t", buf + skip_addr_chars);
+
pb += bytes_per_line;
if (pb > bytes)
pb = bytes;