diff options
author | Joseph Myers <joseph@codesourcery.com> | 2009-03-30 14:41:31 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2009-03-30 14:41:31 +0000 |
commit | d460e92e4111484ffb8b6e898fde7adb619e4722 (patch) | |
tree | dff9d6449ef01b235ecf23cc30a376b1551c4b87 /opcodes/arm-dis.c | |
parent | 87d32bb7b0faf1de5a5f8d2b9a7b6a398a431cc8 (diff) | |
download | gdb-d460e92e4111484ffb8b6e898fde7adb619e4722.zip gdb-d460e92e4111484ffb8b6e898fde7adb619e4722.tar.gz gdb-d460e92e4111484ffb8b6e898fde7adb619e4722.tar.bz2 |
gas/testsuite:
* gas/arm/mapsecs.d, gas/arm/mapsecs.s: New.
opcodes:
* arm-dis.c (print_insn): Also check section matches in backwards
search for mapping symbol.
Diffstat (limited to 'opcodes/arm-dis.c')
-rw-r--r-- | opcodes/arm-dis.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/opcodes/arm-dis.c b/opcodes/arm-dis.c index aedc9f2..3360b82 100644 --- a/opcodes/arm-dis.c +++ b/opcodes/arm-dis.c @@ -4041,7 +4041,9 @@ print_insn (bfd_vma pc, struct disassemble_info *info, bfd_boolean little) for a preceeding one. */ for (; n >= 0; n--) { - if (get_sym_code_type (info, n, &type)) + if ((info->section == NULL + || info->section == info->symtab[n]->section) + && get_sym_code_type (info, n, &type)) { last_sym = n; found = TRUE; |