From adf93a2fd0df7564be34bbbfedd14b87bbc02be1 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sun, 18 Apr 2004 22:58:06 +0000 Subject: [PATCH] * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify architecture when registering sparcnbsd_core_osabi_sniffer. Adjust comment. --- gdb/ChangeLog | 6 ++++++ gdb/sparcnbsd-tdep.c | 5 ++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6bc0346..7900212 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2004-04-19 Mark Kettenis + + * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify + architecture when registering sparcnbsd_core_osabi_sniffer. + Adjust comment. + 2004-04-18 Mark Kettenis * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to diff --git a/gdb/sparcnbsd-tdep.c b/gdb/sparcnbsd-tdep.c index 716d025..43a8e9d 100644 --- a/gdb/sparcnbsd-tdep.c +++ b/gdb/sparcnbsd-tdep.c @@ -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, -- 2.7.4