This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Fix sparc-tdep.c bfd_architecture usage
- To: gdb-patches at sources dot redhat dot com
- Subject: [PATCH] Fix sparc-tdep.c bfd_architecture usage
- From: Mark Kettenis <kettenis at science dot uva dot nl>
- Date: Tue, 15 May 2001 13:39:23 +0200 (MET DST)
This should qualify as an obvious fix. Checked in.
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* sparc-tdep.c (sparc_gdbarch_init): Get the architecture from
info.bfd_arch_info.
Index: sparc-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/sparc-tdep.c,v
retrieving revision 1.16
diff -u -r1.16 sparc-tdep.c
--- sparc-tdep.c 2001/03/28 21:42:31 1.16
+++ sparc-tdep.c 2001/05/15 11:37:03
@@ -2931,7 +2931,7 @@
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. */