Avoid dereferencing null pointer in:
authorJoern Rennecke <joern.rennecke@embecosm.com>
Wed, 22 May 2002 18:16:45 +0000 (18:16 +0000)
committerJoern Rennecke <joern.rennecke@embecosm.com>
Wed, 22 May 2002 18:16:45 +0000 (18:16 +0000)
* sh-dis.c (print_insn_sh): If coff and bfd_mach_sh, use arch_sh4
for disassembly.

opcodes/ChangeLog
opcodes/sh-dis.c

index 80b10e55dce02560f8a1cca6d603c7623c5c2073..3f1f930b8fc32d934beb9d5e61d410fc3a11f1f3 100644 (file)
@@ -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.
index 7f403806dd4cf8f540e80a4773ee23e3b60f9bcc..24d4b41eaff5b69b425bc76910fe11d643764502 100644 (file)
@@ -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:
This page took 0.026697 seconds and 4 git commands to generate.