From e501c732445289c3a92580634fd3b5289197edde Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Thu, 27 Nov 2003 12:43:36 +0000 Subject: * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use .note.netbsdcore.procinfo section to recognize NetBSD core files. --- gdb/osabi.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gdb/osabi.c') diff --git a/gdb/osabi.c b/gdb/osabi.c index e248a2e6c42..8681170fb9e 100644 --- a/gdb/osabi.c +++ b/gdb/osabi.c @@ -462,6 +462,13 @@ generic_elf_osabi_sniff_abi_tag_sections (bfd *abfd, asection *sect, void *obj) } return; } + + /* .note.netbsdcore.procinfo notes, used by NetBSD. */ + if (strcmp (name, ".note.netbsdcore.procinfo") == 0 && sectsize > 0) + { + *os_ident_ptr = GDB_OSABI_NETBSD_ELF; + return; + } } static enum gdb_osabi -- cgit v1.2.1