aboutsummaryrefslogtreecommitdiff
path: root/gdb/sparc-tdep.c
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 /gdb/sparc-tdep.c
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.
Diffstat (limited to 'gdb/sparc-tdep.c')
-rw-r--r--gdb/sparc-tdep.c2
1 files changed, 1 insertions, 1 deletions
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. */