From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5891 invoked by alias); 26 Oct 2007 08:05:18 -0000 Received: (qmail 5882 invoked by uid 22791); 26 Oct 2007 08:05:18 -0000 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO brahms.sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 26 Oct 2007 08:05:16 +0000 Received: from brahms.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by brahms.sibelius.xs4all.nl (8.14.1/8.14.0) with ESMTP id l9Q8582v025685; Fri, 26 Oct 2007 10:05:08 +0200 (CEST) Received: (from kettenis@localhost) by brahms.sibelius.xs4all.nl (8.14.1/8.14.1/Submit) id l9Q85855007631; Fri, 26 Oct 2007 10:05:08 +0200 (CEST) Date: Fri, 26 Oct 2007 09:21:00 -0000 Message-Id: <200710260805.l9Q85855007631@brahms.sibelius.xs4all.nl> From: Mark Kettenis To: uweigand@de.ibm.com CC: gdb-patches@sourceware.org In-reply-to: <200710260117.l9Q1HcWd004692@d12av02.megacenter.de.ibm.com> (uweigand@de.ibm.com) Subject: Re: [rfc] [7/9] Multi-target support: Fix GDB_OSABI_OPENBSD_AOUT problem References: <200710260117.l9Q1HcWd004692@d12av02.megacenter.de.ibm.com> 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 X-SW-Source: 2007-10/txt/msg00705.txt.bz2 > Date: Fri, 26 Oct 2007 03:17:38 +0200 (CEST) > From: "Ulrich Weigand" > > Hello, > > this patch attempts to address a somewhat unfortunate situation > relating to OpenBSD/a.out. > > i386obsd-tdep.c contains this FIXME: > > /* FIXME: kettenis/20021020: Since OpenBSD/i386 binaries are > indistingushable from NetBSD/i386 a.out binaries, building a GDB > that should support both these targets will probably not work as > expected. */ > #define GDB_OSABI_OPENBSD_AOUT GDB_OSABI_NETBSD_AOUT > > In an --enable-targets=all build, this has the effect that two OSABI > sniffers for the (numerically) same OSABI are registered, leading to > an internal compiler error. The last OpenBSD/i386 release that used a.out was OpenBSD 3.3, which was released more than four years ago. I have no problem with dropping a.out support for OpenBSD/i386 if that makes things easier. However, OpenBSD/vax, OpenBSD/m68k and OpenBSD/m88k are still a.out, so parts of your diff might still be required (didn't look at the details of your diff yet). Mark