From 2cc7bb5dcf9511e6e9ae15aaa7a7e35c32e915c2 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 26 Oct 2007 11:27:12 +0000 Subject: [PATCH] * arm-dis.c (print_insn): Check for a symtab that exists but is empty. --- opcodes/ChangeLog | 5 +++++ opcodes/arm-dis.c | 1 + 2 files changed, 6 insertions(+) diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 0f49cd9e72..63640aa906 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2007-10-26 Nick Clifton + + * arm-dis.c (print_insn): Check for a symtab that exists but is + empty. + 2007-10-24 Alan Modra * po/POTFILES.in: Regenerate. diff --git a/opcodes/arm-dis.c b/opcodes/arm-dis.c index 9a4eacc1de..18aad649b3 100644 --- a/opcodes/arm-dis.c +++ b/opcodes/arm-dis.c @@ -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; -- 2.34.1