* arm-dis.c (print_insn): Check for a symtab that exists but is empty.
authorNick Clifton <nickc@redhat.com>
Fri, 26 Oct 2007 11:27:12 +0000 (11:27 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 26 Oct 2007 11:27:12 +0000 (11:27 +0000)
opcodes/ChangeLog
opcodes/arm-dis.c

index 0f49cd9e722093c2baef73752459a1aee9feb77b..63640aa906b0149a8cbf31846908f923aa99cf96 100644 (file)
@@ -1,3 +1,8 @@
+2007-10-26  Nick Clifton  <nickc@redhat.com>
+
+       * arm-dis.c (print_insn): Check for a symtab that exists but is
+       empty.
+
 2007-10-24  Alan Modra  <amodra@bigpond.net.au>
 
        * po/POTFILES.in: Regenerate.
index 9a4eacc1de62c5da3cb6425577620e713ec1d68f..18aad649b39d1abd396c0e67ad1d54cd8612c903 100644 (file)
@@ -3989,6 +3989,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
       && bfd_asymbol_flavour (*info->symtab) == bfd_target_elf_flavour)
     {
       bfd_vma addr;