aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2001-05-15 11:38:26 +0000
committerMark Kettenis <kettenis@gnu.org>2001-05-15 11:38:26 +0000
commitaca21d9a80adeadf8f8503cdc7d537a98c93a11d (patch)
treee5503e7fe8502d889d2572a22ca3c91fbaa1ade6
parentde1cb007d96d8e3efbee1637551c3fd81e542f84 (diff)
downloadgdb-aca21d9a80adeadf8f8503cdc7d537a98c93a11d.zip
gdb-aca21d9a80adeadf8f8503cdc7d537a98c93a11d.tar.gz
gdb-aca21d9a80adeadf8f8503cdc7d537a98c93a11d.tar.bz2
* sparc-tdep.c (sparc_gdbarch_init): Get the architecture from
info.bfd_arch_info.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/sparc-tdep.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 06ba9c8..2b2bfad 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2001-05-15 Mark Kettenis <kettenis@gnu.org>
+
+ * sparc-tdep.c (sparc_gdbarch_init): Get the architecture from
+ info.bfd_arch_info.
+
2001-05-14 Kevin Buettner <kevinb@redhat.com>
* 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 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. */