aboutsummaryrefslogtreecommitdiff
path: root/opcodes/arm-dis.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2009-10-03 00:39:53 +0000
committerAlan Modra <amodra@gmail.com>2009-10-03 00:39:53 +0000
commit8977d4b2194b9cbbcd2258000c5db3176943c570 (patch)
tree7b711154df2a2db712363993885d74852f9146cc /opcodes/arm-dis.c
parentb72ef6b497efc74e18e65e38d25c9c48d79d8de4 (diff)
downloadgdb-8977d4b2194b9cbbcd2258000c5db3176943c570.zip
gdb-8977d4b2194b9cbbcd2258000c5db3176943c570.tar.gz
gdb-8977d4b2194b9cbbcd2258000c5db3176943c570.tar.bz2
* arm-dis.c (print_insn): Check symtab_size not *symtab.
Diffstat (limited to 'opcodes/arm-dis.c')
-rw-r--r--opcodes/arm-dis.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/opcodes/arm-dis.c b/opcodes/arm-dis.c
index 3cbdf9e..7551249 100644
--- a/opcodes/arm-dis.c
+++ b/opcodes/arm-dis.c
@@ -4267,8 +4267,7 @@ print_insn (bfd_vma pc, struct disassemble_info *info, bfd_boolean little)
/* First check the full symtab for a mapping symbol, even if there
are no usable non-mapping symbols for this address. */
- if (info->symtab != NULL
- && * info->symtab
+ if (info->symtab_size != 0
&& bfd_asymbol_flavour (*info->symtab) == bfd_target_elf_flavour)
{
bfd_vma addr;