* objdump.c (dump_data): Correct addr_offset for opb != 1.

This commit is contained in:
Alan Modra
2002-10-21 02:18:58 +00:00
parent 5fe39caef5
commit 8ab56b6f54
2 changed files with 8 additions and 3 deletions

View File

@@ -2237,7 +2237,7 @@ dump_data (abfd)
stop_offset = bfd_section_size (abfd, section) / opb;
}
for (addr_offset = start_offset;
addr_offset < stop_offset; addr_offset += onaline)
addr_offset < stop_offset; addr_offset += onaline / opb)
{
bfd_size_type j;
@@ -2255,7 +2255,8 @@ dump_data (abfd)
}
printf (" ");
for (j = addr_offset; j < addr_offset * opb + onaline; j++)
for (j = addr_offset * opb;
j < addr_offset * opb + onaline; j++)
{
if (j >= stop_offset * opb)
printf (" ");