From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19278 invoked by alias); 23 Sep 2013 20:32:32 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 19269 invoked by uid 89); 23 Sep 2013 20:32:32 -0000 Received: from sibelius.xs4all.nl (HELO glazunov.sibelius.xs4all.nl) (83.163.83.176) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Mon, 23 Sep 2013 20:32:32 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: glazunov.sibelius.xs4all.nl Received: from glazunov.sibelius.xs4all.nl (kettenis@localhost [127.0.0.1]) by glazunov.sibelius.xs4all.nl (8.14.5/8.14.3) with ESMTP id r8NKWOO2020617; Mon, 23 Sep 2013 22:32:24 +0200 (CEST) Received: (from kettenis@localhost) by glazunov.sibelius.xs4all.nl (8.14.5/8.14.3/Submit) id r8NKWOqB022880; Mon, 23 Sep 2013 22:32:24 +0200 (CEST) Date: Mon, 23 Sep 2013 20:32:00 -0000 Message-Id: <201309232032.r8NKWOqB022880@glazunov.sibelius.xs4all.nl> From: Mark Kettenis To: jan.kratochvil@redhat.com CC: mark.kettenis@xs4all.nl, gdb-patches@sourceware.org, palves@redhat.com In-reply-to: <20130922122646.GA2748@host2.jankratochvil.net> (message from Jan Kratochvil on Sun, 22 Sep 2013 14:26:46 +0200) Subject: Re: [patchv4 1/2] Remove a.out NetBSD and OpenBSD hosta and targets References: <201309200924.r8K9OSa9032694@glazunov.sibelius.xs4all.nl> <523C0AAC.800@redhat.com> <20130921131311.GA10222@host2.jankratochvil.net> <20130922122646.GA2748@host2.jankratochvil.net> X-SW-Source: 2013-09/txt/msg00831.txt.bz2 > Date: Sun, 22 Sep 2013 14:26:46 +0200 > From: Jan Kratochvil > > Hi Mark, > > additionally I thought one can remove a.out support from *bsd-{nat,tdep}.c > files. But then I found in sparcnbsd-tdep.c: > > /* OpenBSD uses the traditional NetBSD core file format, even for > ports that use ELF. Therefore, if the default OS ABI is OpenBSD > ELF, we return that instead of NetBSD a.out. This is mainly for > the benfit of OpenBSD/sparc64, which inherits the sniffer below > since we include this file for an OpenBSD/sparc64 target. For > OpenBSD/sparc, the NetBSD a.out OS ABI is probably similar enough > to both the OpenBSD a.out and the OpenBSD ELF OS ABI. */ > #if defined (GDB_OSABI_DEFAULT) && (GDB_OSABI_DEFAULT == GDB_OSABI_OPENBSD_ELF) > #define GDB_OSABI_NETBSD_CORE GDB_OSABI_OPENBSD_ELF > #else > #define GDB_OSABI_NETBSD_CORE GDB_OSABI_NETBSD_AOUT > #endif > > OTOH there is even code for ELF BSD core files. Still the patch > would probably regress OpenBSD so just posting it here as is FYI > without ChangeLog. The switch of core files from traditional ("a.out") to ELF format in OpenBSD was fairly recent, so I don't think it is time yet to do this.