From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21542 invoked by alias); 27 Sep 2007 17:17:09 -0000 Received: (qmail 21534 invoked by uid 22791); 27 Sep 2007 17:17:08 -0000 X-Spam-Check-By: sourceware.org Received: from igw3.br.ibm.com (HELO igw3.br.ibm.com) (32.104.18.26) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 27 Sep 2007 17:17:04 +0000 Received: from mailhub1.br.ibm.com (unknown [9.18.232.109]) by igw3.br.ibm.com (Postfix) with ESMTP id AB1DA390295 for ; Thu, 27 Sep 2007 14:12:04 -0300 (BRT) Received: from d24av02.br.ibm.com (d24av02.br.ibm.com [9.18.232.47]) by mailhub1.br.ibm.com (8.13.8/8.13.8/NCO v8.5) with ESMTP id l8RHH0wk2895986 for ; Thu, 27 Sep 2007 14:17:01 -0300 Received: from d24av02.br.ibm.com (loopback [127.0.0.1]) by d24av02.br.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l8RHH0UQ003401 for ; Thu, 27 Sep 2007 14:17:00 -0300 Received: from dyn532128.br.ibm.com (dyn532128.br.ibm.com [9.18.238.251]) by d24av02.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l8RHH0Xw003388; Thu, 27 Sep 2007 14:17:00 -0300 Subject: Re: [RFC] Handle GPC specific name for main function From: Thiago Jung Bauermann To: Joel Brobecker Cc: Waldek Hebisch , Pierre Muller , gdb-patches@sourceware.org, gpc@gnu.de In-Reply-To: <20070927055228.GA3787@adacore.com> References: <003901c8004b$2f9a55d0$8ecf0170$@u-strasbg.fr> <20070927055228.GA3787@adacore.com> Content-Type: text/plain Date: Thu, 27 Sep 2007 17:17:00 -0000 Message-Id: <1190913417.25072.10.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 Content-Transfer-Encoding: 7bit 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/msg00412.txt.bz2 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. -- []'s Thiago Jung Bauermann Software Engineer IBM Linux Technology Center