* m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
authorAndreas Schwab <schwab@linux-m68k.org>
Sat, 30 Jun 2007 15:35:19 +0000 (15:35 +0000)
committerAndreas Schwab <schwab@linux-m68k.org>
Sat, 30 Jun 2007 15:35:19 +0000 (15:35 +0000)
from the generic m68k arch.

gdb/ChangeLog
gdb/m68k-tdep.c

index 12c7f7864901b6f04b88259d665bfb36de341137..fde27981a06c464e2cf736a80e6a4baa6a50eae7 100644 (file)
@@ -1,3 +1,8 @@
+2007-06-30  Andreas Schwab  <schwab@suse.de>
+
+       * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
+       from the generic m68k arch.
+
 2007-06-28  Michael Snyder  <msnyder@access-company.com>
 
        * m2-typeprint.c (m2_print_type): Move pointer ref after null test
 2007-06-28  Michael Snyder  <msnyder@access-company.com>
 
        * m2-typeprint.c (m2_print_type): Move pointer ref after null test
index 2be4b44476eba0f48b1007f9b15bf6a50ff3e10f..32aa8eb077653a677c879c45198a5c67879268be 100644 (file)
@@ -1110,14 +1110,14 @@ m68k_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
      and the type of long double depend on whether we're
      on ColdFire or standard m68k. */
 
      and the type of long double depend on whether we're
      on ColdFire or standard m68k. */
 
-  if (info.bfd_arch_info)
+  if (info.bfd_arch_info && info.bfd_arch_info->mach != 0)
     {
       const bfd_arch_info_type *coldfire_arch = 
        bfd_lookup_arch (bfd_arch_m68k, bfd_mach_mcf_isa_a_nodiv);
 
       if (coldfire_arch
     {
       const bfd_arch_info_type *coldfire_arch = 
        bfd_lookup_arch (bfd_arch_m68k, bfd_mach_mcf_isa_a_nodiv);
 
       if (coldfire_arch
-         && (*info.bfd_arch_info->compatible) 
-         (info.bfd_arch_info, coldfire_arch))
+         && ((*info.bfd_arch_info->compatible) 
+             (info.bfd_arch_info, coldfire_arch)))
        flavour = m68k_coldfire_flavour;
     }
   
        flavour = m68k_coldfire_flavour;
     }
   
This page took 0.029475 seconds and 4 git commands to generate.