aboutsummaryrefslogtreecommitdiff
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
commit597684c51b38f2cd78c5017c2cfc24e3b2bd4096 (patch)
tree0e678c76547b26754c402b4272726f9d3bcd69d8 /gdb/osabi.c
parent7720ba9f5c9f26d6e37b265ea165bea5c992d0dd (diff)
downloadgdb-597684c51b38f2cd78c5017c2cfc24e3b2bd4096.zip
gdb-597684c51b38f2cd78c5017c2cfc24e3b2bd4096.tar.gz
gdb-597684c51b38f2cd78c5017c2cfc24e3b2bd4096.tar.bz2
* 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 e248a2e..8681170 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