mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-25 02:53:48 +08:00
* i386bsd-tdep.c (i386bsd_core_osabi_sniffer): New function.
(_initialize_i386bsd_tdep): Register i386bsd_core_osabi_sniffer.
This commit is contained in:
parent
2f9c405836
commit
f6943e4a1d
@ -1,5 +1,8 @@
|
||||
2003-12-26 Mark Kettenis <kettenis@gnu.org>
|
||||
|
||||
* i386bsd-tdep.c (i386bsd_core_osabi_sniffer): New function.
|
||||
(_initialize_i386bsd_tdep): Register i386bsd_core_osabi_sniffer.
|
||||
|
||||
* i386-linux-nat.c: Add comment.
|
||||
|
||||
2003-12-26 Christopher Faylor <cgf@redhat.com>
|
||||
|
@ -144,6 +144,15 @@ i386bsd_aout_osabi_sniffer (bfd *abfd)
|
||||
return GDB_OSABI_UNKNOWN;
|
||||
}
|
||||
|
||||
static enum gdb_osabi
|
||||
i386bsd_core_osabi_sniffer (bfd *abfd)
|
||||
{
|
||||
if (strcmp (bfd_get_target (abfd), "netbsd-core") == 0)
|
||||
return GDB_OSABI_NETBSD_AOUT;
|
||||
|
||||
return GDB_OSABI_UNKNOWN;
|
||||
}
|
||||
|
||||
|
||||
/* Provide a prototype to silence -Wmissing-prototypes. */
|
||||
void _initialize_i386bsd_tdep (void);
|
||||
@ -153,4 +162,9 @@ _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,
|
||||
i386bsd_core_osabi_sniffer);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user