Avoid dereferencing null pointer in:
* sh-dis.c (print_insn_sh): If coff and bfd_mach_sh, use arch_sh4 for disassembly.
This commit is contained in:
parent
a75a8c6713
commit
4ee33023a0
2 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
Wed May 22 14:13:40 2002 J"orn Rennecke <joern.rennecke@superh.com>
|
||||
Wed May 22 19:13:27 2002 J"orn Rennecke <joern.rennecke@superh.com>
|
||||
|
||||
* sh-dis.c (print_insn_sh): If coff and bfd_mach_sh, use arch_sh4
|
||||
for disassembly.
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue