From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12937 invoked by alias); 25 May 2009 13:15:15 -0000 Received: (qmail 12859 invoked by uid 22791); 25 May 2009 13:15:13 -0000 X-SWARE-Spam-Status: No, hits=1.4 required=5.0 tests=AWL,BAYES_00,KAM_STOCKTIP,MSGID_FROM_MTA_HEADER,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtagate7.de.ibm.com (HELO mtagate7.de.ibm.com) (195.212.29.156) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 25 May 2009 13:15:08 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate7.de.ibm.com (8.14.3/8.13.8) with ESMTP id n4PDEfVG042144 for ; Mon, 25 May 2009 13:14:41 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 n4PDEf1N2801886 for ; Mon, 25 May 2009 15:14:41 +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 n4PDEflT015545 for ; Mon, 25 May 2009 15:14:41 +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 n4PDEdWQ015511; Mon, 25 May 2009 15:14:39 +0200 Message-Id: <200905251314.n4PDEdWQ015511@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Mon, 25 May 2009 15:14:39 +0200 Subject: Re: [rfc] Remove current_gdbarch register handling from symbol readers To: eliz@gnu.org Date: Mon, 25 May 2009 13:15:00 -0000 From: "Ulrich Weigand" Cc: gdb-patches@sourceware.org In-Reply-To: <8363fvp24e.fsf@gnu.org> from "Eli Zaretskii" at May 21, 2009 06:26:57 AM 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/msg00561.txt.bz2 Eli Zaretskii wrote: > > Date: Thu, 21 May 2009 02:52:22 +0200 (CEST) > > From: "Ulrich Weigand" > > Cc: gdb-patches@sourceware.org > > > > 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 ... > > Well, I already tried that, and at least with MinGW GCC 3.4.2 that I > have installed, it fails: the binary produced with -gcoff is not > recognized by MinGW GDB 6.8 (it says "not in executable format"). > Maybe it's a bug somewhere. > > > The only target for which GCC by default generates COFF/SDB debug > > info does indeed appear to be -msdosdjgpp ... > > DJGPP GCC uses DWARF-2 by default also, but it fully supports -gcoff. Ah, OK, I have misread the GCC config files ... So overall it seems that *no* target uses COFF/SDB debug info as its default format any more; those that still support it at all also use a more powerful format as default. Under those circumstances, is there any benefit to continuing to support that format in GDB, given that it becomes more and more diffcult to test that this support actually still works? > The problem is that DJGPP does not support expect, so the the test > suite cannot be run. I can run some tests manually, so if you or > someone else could tell which test may be affected by this change, I > can try running them. Pretty much any access to an in-register local variable or parameter should break if the change is wrong. Thanks for your help in testing! Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com