aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2009-10-03 00:40:25 +0000
committerAlan Modra <amodra@gmail.com>2009-10-03 00:40:25 +0000
commitc881dd0763acc6a5e0c01ba2b54d4c791b8fa58a (patch)
tree4b20850049e8e63e9b321e0ea050ad60e0845e31
parentdf038c41b5b9d8ee4e830715140545a6deae1333 (diff)
downloadgdb-c881dd0763acc6a5e0c01ba2b54d4c791b8fa58a.zip
gdb-c881dd0763acc6a5e0c01ba2b54d4c791b8fa58a.tar.gz
gdb-c881dd0763acc6a5e0c01ba2b54d4c791b8fa58a.tar.bz2
* arm-dis.c (print_insn): Check symtab_size not *symtab.
-rw-r--r--opcodes/ChangeLog4
-rw-r--r--opcodes/arm-dis.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index d803590..c0e7a23 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -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.
diff --git a/opcodes/arm-dis.c b/opcodes/arm-dis.c
index ef1f03f..7657147 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;