This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH/RFA] Set architecture for NetBSD/vax core files
- From: Mark Kettenis <kettenis at chello dot nl>
- To: binutils at sources dot redhat dot com
- Date: Thu, 15 Apr 2004 17:18:39 +0200 (CEST)
- Subject: [PATCH/RFA] Set architecture for NetBSD/vax core files
I just added proper support for NetBSD/vax and OpenBSD/vax to GDB. To
make sure that GDB understands the old-style a.out-ish core files on
those systems, this patch is needed. Nothing shicking; just adds the
NetBSD/vax machine IDs to the i386, amd64, sparc, sparc64 ones that
are already there.
OK?
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* netbsd-core.c (netbsd_core_file_p): Set architecture for VAX
core files.
Index: netbsd-core.c
===================================================================
RCS file: /cvs/src/src/bfd/netbsd-core.c,v
retrieving revision 1.13
diff -u -p -r1.13 netbsd-core.c
--- netbsd-core.c 5 Apr 2004 14:43:36 -0000 1.13
+++ netbsd-core.c 15 Apr 2004 15:14:55 -0000
@@ -185,8 +185,13 @@ netbsd_core_file_p (abfd)
case M_SPARC64_OPENBSD:
bfd_default_set_arch_mach (abfd, bfd_arch_sparc, bfd_mach_sparc_v9);
break;
+
+ case M_VAX_NETBSD:
+ case M_VAX4K_NETBSD:
+ bfd_default_set_arch_mach (abfd, bfd_arch_vax, 0);
+ break;
}
-
+
/* OK, we believe you. You're a core file (sure, sure). */
return abfd->xvec;