From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2269 invoked by alias); 22 Jan 2004 21:56:40 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 2261 invoked from network); 22 Jan 2004 21:56:38 -0000 Received: from unknown (HELO walton.kettenis.dyndns.org) (213.93.115.144) by sources.redhat.com with SMTP; 22 Jan 2004 21:56:38 -0000 Received: from elgar.kettenis.dyndns.org (elgar.kettenis.dyndns.org [192.168.0.2]) by walton.kettenis.dyndns.org (8.12.6p3/8.12.6) with ESMTP id i0MLub9e002199 for ; Thu, 22 Jan 2004 22:56:37 +0100 (CET) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: from elgar.kettenis.dyndns.org (localhost [127.0.0.1]) by elgar.kettenis.dyndns.org (8.12.6p3/8.12.6) with ESMTP id i0MLubSm016539 for ; Thu, 22 Jan 2004 22:56:37 +0100 (CET) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: (from kettenis@localhost) by elgar.kettenis.dyndns.org (8.12.6p3/8.12.6/Submit) id i0MLubYk016536; Thu, 22 Jan 2004 22:56:37 +0100 (CET) Date: Thu, 22 Jan 2004 21:56:00 -0000 Message-Id: <200401222156.i0MLubYk016536@elgar.kettenis.dyndns.org> From: Mark Kettenis To: gdb-patches@sources.redhat.com Subject: [PATCH] Recognize OpenBSD ELF X-SW-Source: 2004-01/txt/msg00612.txt.bz2 The attached patch is pretty obvious, so I committed it. Mark Index: ChangeLog from Mark Kettenis * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize OpenBSD .note.openbsd.ident sections. Index: osabi.c =================================================================== RCS file: /cvs/src/src/gdb/osabi.c,v retrieving revision 1.26 diff -u -p -r1.26 osabi.c --- osabi.c 21 Jan 2004 23:07:26 -0000 1.26 +++ osabi.c 22 Jan 2004 21:53:56 -0000 @@ -473,6 +473,15 @@ generic_elf_osabi_sniff_abi_tag_sections 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) {