summaryrefslogtreecommitdiff
path: root/gdb/osabi.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2003-11-27 12:43:36 +0000
committerMark Kettenis <kettenis@gnu.org>2003-11-27 12:43:36 +0000
commite501c732445289c3a92580634fd3b5289197edde (patch)
treea7c9fe83aa4b3819625dd51d5cd1805ec5f73bcf /gdb/osabi.c
parentce2c2b9c233c97e60f673d2896dd8cf8c1ed0014 (diff)
downloadgdb-e501c732445289c3a92580634fd3b5289197edde.tar.gz
* osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use
.note.netbsdcore.procinfo section to recognize NetBSD core files.
Diffstat (limited to 'gdb/osabi.c')
-rw-r--r--gdb/osabi.c7
1 files changed, 7 insertions, 0 deletions
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