From aca21d9a80adeadf8f8503cdc7d537a98c93a11d Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Tue, 15 May 2001 11:38:26 +0000 Subject: [PATCH] * sparc-tdep.c (sparc_gdbarch_init): Get the architecture from info.bfd_arch_info. --- gdb/ChangeLog | 5 +++++ gdb/sparc-tdep.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 06ba9c88258..2b2bfad0955 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-05-15 Mark Kettenis + + * sparc-tdep.c (sparc_gdbarch_init): Get the architecture from + info.bfd_arch_info. + 2001-05-14 Kevin Buettner * lin-lwp.c (detach_callback, lin_lwp_wait, lin_lwp_pid_to_str): diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c index 2cb27dbb8a5..ef9ae07f0ee 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. */ -- 2.30.2