aboutsummaryrefslogtreecommitdiff
path: root/opcodes/sh-dis.c
diff options
context:
space:
mode:
Diffstat (limited to 'opcodes/sh-dis.c')
-rw-r--r--opcodes/sh-dis.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/opcodes/sh-dis.c b/opcodes/sh-dis.c
index 7f40380..24d4b41 100644
--- a/opcodes/sh-dis.c
+++ b/opcodes/sh-dis.c
@@ -304,7 +304,8 @@ print_insn_sh (memaddr, info)
/* SH coff object files lack information about the machine type, so
we end up with bfd_mach_sh unless it was set explicitly (which
could have happended if this is a call from gdb or the simulator.) */
- if (bfd_asymbol_flavour(*info->symbols) == bfd_target_coff_flavour)
+ if (info->symbols
+ && bfd_asymbol_flavour(*info->symbols) == bfd_target_coff_flavour)
target_arch = arch_sh4;
break;
case bfd_mach_sh2: