From aca21d9a80adeadf8f8503cdc7d537a98c93a11d Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Tue, 15 May 2001 11:38:26 +0000 Subject: * sparc-tdep.c (sparc_gdbarch_init): Get the architecture from info.bfd_arch_info. --- gdb/sparc-tdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/sparc-tdep.c') diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c index 2cb27db..ef9ae07 100644 --- a/gdb/sparc-tdep.c +++ b/gdb/sparc-tdep.c @@ -2931,7 +2931,7 @@ sparc_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) return arches->gdbarch; /* None found: is the request for a sparc architecture? */ - if (info.bfd_architecture != bfd_arch_sparc) + if (info.bfd_arch_info->arch != bfd_arch_sparc) return NULL; /* No; then it's not for us. */ /* Yes: create a new gdbarch for the specified machine type. */ -- cgit v1.1