aboutsummaryrefslogtreecommitdiff
path: root/binutils/objdump.c
diff options
context:
space:
mode:
authorJohn Healy <jhealy@redhat.com>2001-08-03 22:08:44 +0000
committerJohn Healy <jhealy@redhat.com>2001-08-03 22:08:44 +0000
commit8f9d9bd9e96be33517006a2a569c7ed873be6e62 (patch)
treebdd6b8ea53a41359d9de94ac21e0cfd53bcdc4ee /binutils/objdump.c
parent455ecc72910810dc9447b9eead48256d21574027 (diff)
downloadgdb-8f9d9bd9e96be33517006a2a569c7ed873be6e62.zip
gdb-8f9d9bd9e96be33517006a2a569c7ed873be6e62.tar.gz
gdb-8f9d9bd9e96be33517006a2a569c7ed873be6e62.tar.bz2
2001-08-03 John Healy <jhealy@redhat.com>
Patch suggested by Frank Eigler <fche@redhat.com>. * objdump.c (disassemble_data): Fill in section member of the disasm_info structure.
Diffstat (limited to 'binutils/objdump.c')
-rw-r--r--binutils/objdump.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/binutils/objdump.c b/binutils/objdump.c
index 12a8324..151ed85 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -1736,6 +1736,7 @@ disassemble_data (abfd)
disasm_info.buffer = data;
disasm_info.buffer_vma = section->vma;
disasm_info.buffer_length = datasize;
+ disasm_info.section = section;
if (start_address == (bfd_vma) -1
|| start_address < disasm_info.buffer_vma)
addr_offset = 0;