diff options
author | Joseph Myers <jsm@polyomino.org.uk> | 2009-03-30 14:41:28 +0000 |
---|---|---|
committer | Joseph Myers <jsm@polyomino.org.uk> | 2009-03-30 14:41:28 +0000 |
commit | bdeb17716c0e7deab059245d9b0297cf02c7e66a (patch) | |
tree | d6437bf16f529a9e183ab423b3310e59d27331ff /opcodes | |
parent | 3aa76975264f166f4a0cfc02682c29f55b3ca82f (diff) | |
download | gdb-bdeb17716c0e7deab059245d9b0297cf02c7e66a.tar.gz |
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')
-rw-r--r-- | opcodes/ChangeLog | 5 | ||||
-rw-r--r-- | opcodes/arm-dis.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index fb917ce7c29..a98f288452a 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2009-03-30 Joseph Myers <joseph@codesourcery.com> + + * arm-dis.c (print_insn): Also check section matches in backwards + search for mapping symbol. + 2009-03-26 H.J. Lu <hongjiu.lu@intel.com> * i386-dis.c (get_valid_dis386): Abort on unhandled table. diff --git a/opcodes/arm-dis.c b/opcodes/arm-dis.c index aedc9f2278f..3360b8292d6 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; |