From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32447 invoked by alias); 27 Sep 2007 19:50:11 -0000 Received: (qmail 32400 invoked by uid 22791); 27 Sep 2007 19:50:10 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 27 Sep 2007 19:50:06 +0000 Received: (qmail 23102 invoked from network); 27 Sep 2007 19:50:04 -0000 Received: from unknown (HELO localhost) (jimb@127.0.0.2) by mail.codesourcery.com with ESMTPA; 27 Sep 2007 19:50:04 -0000 To: Thiago Jung Bauermann Cc: Joel Brobecker , Waldek Hebisch , Pierre Muller , gdb-patches@sourceware.org, gpc@gnu.de Subject: Re: [RFC] Handle GPC specific name for main function References: <003901c8004b$2f9a55d0$8ecf0170$@u-strasbg.fr> <20070927055228.GA3787@adacore.com> <1190913417.25072.10.camel@localhost.localdomain> From: Jim Blandy Date: Thu, 27 Sep 2007 19:50:00 -0000 In-Reply-To: <1190913417.25072.10.camel@localhost.localdomain> (Thiago Jung Bauermann's message of "Thu, 27 Sep 2007 14:16:57 -0300") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes 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-09/txt/msg00416.txt.bz2 Thiago Jung Bauermann writes: > On Wed, 2007-09-26 at 22:52 -0700, Joel Brobecker wrote: >> It looks like we're reaching the same conclusion as before, which is >> that, unless GPC gets changed to emit a specific symbol to specify >> that the main is in pascal, the strongest approach is to rely on >> DWARF data. >> >> http://www.cygwin.com/ml/gdb-patches/2005-11/msg00380.html > > Unfortunately, from the discussion above there is no adequate DWARF tag > to specify which is the main program. Like Dan Berlin suggested, it is > necessary to come up with a new one and make the compilers (gpc and > gfortran) emit those. The DWARF committee discussed adding a tag to do this, but it got bogged down in questions about what to do in cases like Java and Ada and COBOL, and how to phrase the definition to mean the right thing in all those cases. If the DWARF web site is up to date, the proposal got sent back for revision. http://dwarfstd.org/ShowIssue.php?issue=070619.1&type=open