From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16422 invoked by alias); 29 Oct 2007 20:19:16 -0000 Received: (qmail 16403 invoked by uid 22791); 29 Oct 2007 20:19:14 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate4.de.ibm.com (HELO mtagate4.de.ibm.com) (195.212.29.153) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 29 Oct 2007 20:19:10 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate4.de.ibm.com (8.13.8/8.13.8) with ESMTP id l9TKJ7if060308 for ; Mon, 29 Oct 2007 20:19:07 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v8.5) with ESMTP id l9TKJ7Oi2109482 for ; Mon, 29 Oct 2007 21:19:07 +0100 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l9TKJ7Df001375 for ; Mon, 29 Oct 2007 21:19:07 +0100 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with SMTP id l9TKJ78e001372; Mon, 29 Oct 2007 21:19:07 +0100 Message-Id: <200710292019.l9TKJ78e001372@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Mon, 29 Oct 2007 21:19:07 +0100 Subject: Re: [rfc] [7/9] Multi-target support: Fix GDB_OSABI_OPENBSD_AOUT problem To: mark.kettenis@xs4all.nl (Mark Kettenis) Date: Mon, 29 Oct 2007 20:27:00 -0000 From: "Ulrich Weigand" Cc: gdb-patches@sourceware.org In-Reply-To: <200710260805.l9Q85855007631@brahms.sibelius.xs4all.nl> from "Mark Kettenis" at Oct 26, 2007 10:05:08 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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/msg00776.txt.bz2 Mark Kettenis wrote: > 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). The problem occurs whenever we want to support both OpenBSD-a.out and NetBSD-a.out on the same platform, and they both want to install (different) OSABI handlers. On m88k, we don't support NetBSD at all, so this is no problem. On m68k, we support both NetBSD and OpenBSD, but they use the same gdbarch structure (with no OSABI handlers at all), so this is no problem (currently) either. On vax, both NetBSD and OpenBSD want to install an OSABI handler, so this *is* a problem. However, the NetBSD OSABI handler doesn't actually do anything -- do you know the status of NetBSD/vax? If we can resolve the vax question, and indeed drop a.out support for either NetBSD/i386 or OpenBSD/i386, this would solve the problem as well. Otherwise, the suggestion implemented in my patch would be to at least offer two separate OSABI settings for the two operating systems; this will at least enable users to manually select the correct OS, if it cannot be detected automatically ... Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com