diff options
author | Richard Earnshaw <richard.earnshaw@arm.com> | 2007-04-20 00:00:21 +0000 |
---|---|---|
committer | Richard Earnshaw <richard.earnshaw@arm.com> | 2007-04-20 00:00:21 +0000 |
commit | 941c263a55bb1835676b0f79b238bf948b1035d8 (patch) | |
tree | 9224236a34e284668d56a8e7d256078ee512ab62 /opcodes/arm-dis.c | |
parent | 0486aa16b125d91922fc8636c255ea2d6b4c10c6 (diff) | |
download | gdb-941c263a55bb1835676b0f79b238bf948b1035d8.tar.gz |
* arm-dis.c (print_insn): Only look for a mapping symbol in the section
being disassembled.
Diffstat (limited to 'opcodes/arm-dis.c')
-rw-r--r-- | opcodes/arm-dis.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/opcodes/arm-dis.c b/opcodes/arm-dis.c index b570ac0ae2e..a782d22b2c7 100644 --- a/opcodes/arm-dis.c +++ b/opcodes/arm-dis.c @@ -1,6 +1,6 @@ /* Instruction printing code for the ARM Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 - Free Software Foundation, Inc. + 2007, Free Software Foundation, Inc. Contributed by Richard Earnshaw (rwe@pegasus.esprit.ec.org) Modification by James G. Smith (jsmith@cygnus.co.uk) @@ -3982,7 +3982,9 @@ print_insn (bfd_vma pc, struct disassemble_info *info, bfd_boolean little) addr = bfd_asymbol_value (info->symtab[n]); if (addr > pc) break; - 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; |