aboutsummaryrefslogtreecommitdiff
path: root/gdb/m68k-tdep.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2007-06-30 15:35:19 +0000
committerAndreas Schwab <schwab@linux-m68k.org>2007-06-30 15:35:19 +0000
commit4ed7793328456e0503374bee02853a844ac07e9f (patch)
treef106e140cb974553354020521ea57492b646c142 /gdb/m68k-tdep.c
parent34c8bcbae2e6ea0752c1ebe6e1282cc74a821957 (diff)
downloadgdb-4ed7793328456e0503374bee02853a844ac07e9f.zip
gdb-4ed7793328456e0503374bee02853a844ac07e9f.tar.gz
gdb-4ed7793328456e0503374bee02853a844ac07e9f.tar.bz2
* m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
from the generic m68k arch.
Diffstat (limited to 'gdb/m68k-tdep.c')
-rw-r--r--gdb/m68k-tdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/m68k-tdep.c b/gdb/m68k-tdep.c
index 2be4b44..32aa8eb 100644
--- a/gdb/m68k-tdep.c
+++ b/gdb/m68k-tdep.c
@@ -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. */
- 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
- && (*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;
}