aboutsummaryrefslogtreecommitdiff
path: root/binutils/objdump.c
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2006-10-31 20:21:57 +0000
committerPaul Brook <paul@codesourcery.com>2006-10-31 20:21:57 +0000
commit2087ad8497a3aa9818a7bf0a866b56ac92069bfa (patch)
tree21683cd8a2dcd9b4b04f32bd4f1609c60966ee49 /binutils/objdump.c
parent7a1d4c38938b172a8f3fdb38b01551306bd51d8d (diff)
downloadgdb-2087ad8497a3aa9818a7bf0a866b56ac92069bfa.zip
gdb-2087ad8497a3aa9818a7bf0a866b56ac92069bfa.tar.gz
gdb-2087ad8497a3aa9818a7bf0a866b56ac92069bfa.tar.bz2
2006-10-30 Paul Brook <paul@codesourcery.com>
binutils/ * objdump.c (disassemble_section): Set info->symtab_pos. (disassemble_data): Set info->symtab and info->symtab_size. include/ * dis-asm.h (disassemble_info): Add symtab, symtab_pos and symtab_size. opcodes/ * arm-dis.c (last_is_thumb, last_mapping_sym, last_mapping_addr): New. (get_sym_code_type): New function. (print_insn): Search for mapping symbols.
Diffstat (limited to 'binutils/objdump.c')
-rw-r--r--binutils/objdump.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/binutils/objdump.c b/binutils/objdump.c
index 809457e..661ee29 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -1748,11 +1748,13 @@ disassemble_section (bfd *abfd, asection *section, void *info)
pinfo->symbols = sorted_syms + place;
pinfo->num_symbols = x - place;
+ pinfo->symtab_pos = place;
}
else
{
pinfo->symbols = NULL;
pinfo->num_symbols = 0;
+ pinfo->symtab_pos = -1;
}
if (! prefix_addresses)
@@ -1945,6 +1947,8 @@ disassemble_data (bfd *abfd)
compare_relocs);
}
}
+ disasm_info.symtab = sorted_syms;
+ disasm_info.symtab_size = sorted_symcount;
bfd_map_over_sections (abfd, disassemble_section, & disasm_info);