* sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
authorMark Kettenis <kettenis@gnu.org>
Sun, 18 Apr 2004 22:58:06 +0000 (22:58 +0000)
committerMark Kettenis <kettenis@gnu.org>
Sun, 18 Apr 2004 22:58:06 +0000 (22:58 +0000)
architecture when registering sparcnbsd_core_osabi_sniffer.
Adjust comment.

gdb/ChangeLog
gdb/sparcnbsd-tdep.c

index 6bc0346f73949981b032009c4843ba03602f7ad0..790021267f29186e87ad73537767fcc708413c31 100644 (file)
@@ -1,3 +1,9 @@
+2004-04-19  Mark Kettenis  <kettenis@gnu.org>
+
+       * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
+       architecture when registering sparcnbsd_core_osabi_sniffer.
+       Adjust comment.
+
 2004-04-18  Mark Kettenis  <kettenis@gnu.org>
 
        * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
index 716d0253b9e62246d057028dc2d3925c4332d4ec..43a8e9de3d620d09b60bd721057b4c40130c9b7a 100644 (file)
@@ -345,9 +345,8 @@ _initialize_sparnbsd_tdep (void)
   gdbarch_register_osabi_sniffer (bfd_arch_sparc, bfd_target_aout_flavour,
                                  sparcnbsd_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_sparc, bfd_target_unknown_flavour,
                                   sparcnbsd_core_osabi_sniffer);
 
   gdbarch_register_osabi (bfd_arch_sparc, 0, GDB_OSABI_NETBSD_AOUT,