This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH/RFA] Set architecture for NetBSD/powerpc core files
- From: Mark Kettenis <kettenis at chello dot nl>
- To: binutils at sources dot redhat dot com
- Date: Sun, 18 Apr 2004 15:44:52 +0200 (CEST)
- Subject: [PATCH/RFA] Set architecture for NetBSD/powerpc core files
Another straightforward patch that adds core file support for the
upcoming OpenBSD/powerpc support in GDB. NetBSD/powerpc probably
doesn't need this, but it shouldn't hurt. The situation is similar to
NetBSD/amd64 and NetBSD/sparc64 in that respect.
OK for mainline?
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
* netbsd-core.c (netbsd_core_file_p): Set architecture for PowerPC
core files.
Index: libaout.h
===================================================================
RCS file: /cvs/src/src/bfd/libaout.h,v
retrieving revision 1.14
diff -u -p -r1.14 libaout.h
--- libaout.h 15 Mar 2004 12:23:10 -0000 1.14
+++ libaout.h 18 Apr 2004 13:41:29 -0000
@@ -273,6 +273,7 @@ enum machine_type
M_ALPHA_NETBSD = 141, /* NetBSD/alpha binary. */
M_ARM6_NETBSD = 143, /* NetBSD/arm32 binary. */
M_SPARCLET_1 = 147, /* 0x93, reserved. */
+ M_POWERPC_NETBSD = 149, /* NetBSD/powerpc binary. */
M_VAX4K_NETBSD = 150, /* NetBSD/vax 4K pages binary. */
M_MIPS1 = 151, /* MIPS R2000/R3000 binary. */
M_MIPS2 = 152, /* MIPS R4000/R6000 binary. */
Index: netbsd-core.c
===================================================================
RCS file: /cvs/src/src/bfd/netbsd-core.c,v
retrieving revision 1.14
diff -u -p -r1.14 netbsd-core.c
--- netbsd-core.c 15 Apr 2004 16:04:38 -0000 1.14
+++ netbsd-core.c 18 Apr 2004 13:41:29 -0000
@@ -177,6 +177,10 @@ netbsd_core_file_p (abfd)
bfd_default_set_arch_mach (abfd, bfd_arch_i386, bfd_mach_i386_i386);
break;
+ case M_POWERPC_NETBSD:
+ bfd_default_set_arch_mach (abfd, bfd_arch_powerpc, bfd_mach_ppc);
+ break;
+
case M_SPARC_NETBSD:
bfd_default_set_arch_mach (abfd, bfd_arch_sparc, bfd_mach_sparc);
break;