aboutsummaryrefslogtreecommitdiff
path: root/binutils
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
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')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/objdump.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 7b935d9..6628f14 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2006-10-30 Paul Brook <paul@codesourcery.com>
+
+ * objdump.c (disassemble_section): Set info->symtab_pos.
+ (disassemble_data): Set info->symtab and info->symtab_size.
+
2006-10-29 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/3384
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);