From 642d8300fe08760ef796789be6cc7afc3a392d84 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Thu, 22 Jan 2004 21:56:34 +0000 Subject: [PATCH] * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize OpenBSD .note.openbsd.ident sections. --- gdb/ChangeLog | 5 +++++ gdb/osabi.c | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2d8cc4d3930..aaa1b3c73c1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2004-01-22 Mark Kettenis + + * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize + OpenBSD .note.openbsd.ident sections. + 2004-01-22 David Carlton * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via diff --git a/gdb/osabi.c b/gdb/osabi.c index 239d508309f..3acfc703648 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) { -- 2.30.2