summaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2007-10-26 11:27:12 +0000
committerNick Clifton <nickc@redhat.com>2007-10-26 11:27:12 +0000
commitc02a49e20cffecd547f2bf02f9e71bc725e87c8a (patch)
treea941468aaaa3ff5f408a1c0f558a4408f39cfa08 /opcodes
parent91227302b29c7e97293158591d5a02437c0c8da1 (diff)
downloadgdb-c02a49e20cffecd547f2bf02f9e71bc725e87c8a.tar.gz
* arm-dis.c (print_insn): Check for a symtab that exists but is empty.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog5
-rw-r--r--opcodes/arm-dis.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 0f49cd9e722..63640aa906b 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -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.
diff --git a/opcodes/arm-dis.c b/opcodes/arm-dis.c
index 9a4eacc1de6..18aad649b39 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;