]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* arm-dis.c (print_insn): Check symtab_size not *symtab.
authorAlan Modra <amodra@gmail.com>
Sat, 3 Oct 2009 00:40:25 +0000 (00:40 +0000)
committerAlan Modra <amodra@gmail.com>
Sat, 3 Oct 2009 00:40:25 +0000 (00:40 +0000)
opcodes/ChangeLog
opcodes/arm-dis.c

index d8035905fb25c503c2a4c86bfac4b0feadd57e2e..c0e7a233220eda1ae5bc779f51b487aaab80d055 100644 (file)
@@ -1,3 +1,7 @@
+2009-10-03  Paul Reed  <paulreed@paddedcell.com>
+
+       * arm-dis.c (print_insn): Check symtab_size not *symtab.
+
 2009-10-02  Peter Bergner  <bergner@vnet.ibm.com>
 
        * ppc-dis.c (ppc_opts): Add "476" entry.
index ef1f03f2ad21506ba46bbd81e3b50da889cc005a..76571478600d0e7567696aaed66257214aa81bcf 100644 (file)
@@ -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;