From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8412 invoked by alias); 21 May 2009 00:52:34 -0000 Received: (qmail 8397 invoked by uid 22791); 21 May 2009 00:52:33 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_13,MSGID_FROM_MTA_HEADER,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mtagate3.de.ibm.com (HELO mtagate3.de.ibm.com) (195.212.29.152) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 21 May 2009 00:52:27 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate3.de.ibm.com (8.14.3/8.13.8) with ESMTP id n4L0qOg4201620 for ; Thu, 21 May 2009 00:52:24 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 v9.2) with ESMTP id n4L0qNCf2556032 for ; Thu, 21 May 2009 02:52:23 +0200 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 n4L0qNUw002964 for ; Thu, 21 May 2009 02:52:23 +0200 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 n4L0qMgq002959; Thu, 21 May 2009 02:52:22 +0200 Message-Id: <200905210052.n4L0qMgq002959@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Thu, 21 May 2009 02:52:22 +0200 Subject: Re: [rfc] Remove current_gdbarch register handling from symbol readers To: eliz@gnu.org Date: Thu, 21 May 2009 00:52:00 -0000 From: "Ulrich Weigand" Cc: gdb-patches@sourceware.org In-Reply-To: <83eiujpt7n.fsf@gnu.org> from "Eli Zaretskii" at May 20, 2009 08:41:48 PM 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: 2009-05/txt/msg00445.txt.bz2 Eli Zaretskii wrote: > What about the COFF related parts? were they tested? Unfortunately not, as I don't have any platform available that uses COFF. > I recently found a few places where COFF support suffered some serious > bitrot, and I think that's because it is not tested enough. Is there > some Posix platform that supports COFF, and where we could run the > test suite? I've had a look through current gcc and binutils sources to try to figure out were COFF is supported. GCC enables the "SDB" (COFF) debug format (sdbout.c) for the following platforms: arm*-wince-pe*) arm-*-pe*) i[34567]86-*-pe | i[34567]86-*-cygwin*) i[34567]86-*-mingw* | x86_64-*-mingw*) i[34567]86-*-interix3*) i[34567]86-pc-msdosdjgpp*) alpha*-*-openbsd*) mips*-*-openbsd*) (This is the complete list for mainline GCC. Past GCC versions supported additional COFF targets, e.g. i386 a.out Linux, and some bare-metal COFF targets. All those have been removed.) The alpha/mips OpenBSD targets are a bit misleading, as they do not actually use the COFF file format, but ELF. However, there's apparently a hack in GAS for these targets where it expects GCC to generate COFF/SDB style debugging pseudo-ops, and then translates those to the ECOFF debugging format embedded in ELF. As far as GDB is concerned, such files should be processed by elfread.c/mdebugread.c, not coffread.c. Only the Windows/DOS related targets remain. Of those, all the -pe / -mingw / -cygwin / -interix targets actually use the PE file format, not "real" COFF, and GCC will default to generate stabs or DWARF-2 for those. It seems possible to use -gcoff to force GCC to emit COFF/SDB debug info; I'm not sure if this will actually work with PE files ... The only target for which GCC by default generates COFF/SDB debug info does indeed appear to be -msdosdjgpp ... Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com