This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Narrow down registstration of OS/ABI sniffer for NetBSD cores
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Fri, 5 Mar 2004 22:02:08 +0100 (CET)
- Subject: [PATCH] Narrow down registstration of OS/ABI sniffer for NetBSD cores
With the recent changes to bfd/netbsd-core.c this is now possible.
Committed,
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
bfd_arch_unknown. Adjust comment.
Index: i386bsd-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/i386bsd-tdep.c,v
retrieving revision 1.20
diff -u -p -r1.20 i386bsd-tdep.c
--- i386bsd-tdep.c 22 Feb 2004 11:19:15 -0000 1.20
+++ i386bsd-tdep.c 5 Mar 2004 20:59:58 -0000
@@ -163,8 +163,7 @@ _initialize_i386bsd_tdep (void)
gdbarch_register_osabi_sniffer (bfd_arch_i386, bfd_target_aout_flavour,
i386bsd_aout_osabi_sniffer);
- /* BFD doesn't set the architecture for NetBSD style a.out core
- files. */
- gdbarch_register_osabi_sniffer (bfd_arch_unknown, bfd_target_unknown_flavour,
+ /* BFD doesn't set a flavour for NetBSD style a.out core files. */
+ gdbarch_register_osabi_sniffer (bfd_arch_i386, bfd_target_unknown_flavour,
i386bsd_core_osabi_sniffer);
}