tweak last change

This commit is contained in:
Ian Lance Taylor 1997-01-29 19:08:53 +00:00
parent 54f74247cb
commit 0948199a7b
1 changed files with 9 additions and 1 deletions

View File

@ -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;