aboutsummaryrefslogtreecommitdiff
path: root/gdb/osabi.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-01-22 21:56:34 +0000
committerMark Kettenis <kettenis@gnu.org>2004-01-22 21:56:34 +0000
commit642d8300fe08760ef796789be6cc7afc3a392d84 (patch)
tree6bbab6e1e17f7090af63a9a38df65d92b7e2bddb /gdb/osabi.c
parentfae299cdd3e0698ea5b8a8a1129454fe6cc3acd4 (diff)
downloadgdb-642d8300fe08760ef796789be6cc7afc3a392d84.zip
gdb-642d8300fe08760ef796789be6cc7afc3a392d84.tar.gz
gdb-642d8300fe08760ef796789be6cc7afc3a392d84.tar.bz2
* osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
OpenBSD .note.openbsd.ident sections.
Diffstat (limited to 'gdb/osabi.c')
-rw-r--r--gdb/osabi.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/osabi.c b/gdb/osabi.c
index 239d508..3acfc70 100644
--- a/gdb/osabi.c
+++ b/gdb/osabi.c
@@ -473,6 +473,15 @@ generic_elf_osabi_sniff_abi_tag_sections: unknown OS number %d",
return;
}
+ /* .note.openbsd.ident notes, used by OpenBSD. */
+ if (strcmp (name, ".note.openbsd.ident") == 0
+ && check_note (abfd, sect, note, "OpenBSD", 4, NT_OPENBSD_IDENT))
+ {
+ /* There is no need to check the version yet. */
+ *osabi = GDB_OSABI_OPENBSD_ELF;
+ return;
+ }
+
/* .note.netbsdcore.procinfo notes, used by NetBSD. */
if (strcmp (name, ".note.netbsdcore.procinfo") == 0)
{