From 597684c51b38f2cd78c5017c2cfc24e3b2bd4096 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Thu, 27 Nov 2003 12:43:36 +0000 Subject: [PATCH] * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use .note.netbsdcore.procinfo section to recognize NetBSD core files. --- gdb/ChangeLog | 5 +++++ gdb/osabi.c | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 71ad93d2576..ab8a9e4deef 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2003-11-27 Mark Kettenis + + * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use + .note.netbsdcore.procinfo section to recognize NetBSD core files. + 2003-11-26 Michael Chastain * cp-abi.c: Update copyright years. 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 -- 2.30.2