From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3601 invoked by alias); 10 Jul 2002 18:47:57 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 3588 invoked from network); 10 Jul 2002 18:47:56 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 10 Jul 2002 18:47:56 -0000 Received: from dsl254-114-096.nyc1.dsl.speakeasy.net ([216.254.114.96] helo=nevyn.them.org) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 17SMVG-000425-00; Wed, 10 Jul 2002 13:47:54 -0500 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 17SMVD-0006FP-00; Wed, 10 Jul 2002 14:47:51 -0400 Date: Wed, 10 Jul 2002 11:49:00 -0000 From: Daniel Jacobowitz To: Jim Blandy Cc: Petr Sorfa , gdb-patches@sources.redhat.com Subject: Re: [PATCH] DW_AT_calling_convention support Message-ID: <20020710184750.GB923@nevyn.them.org> Mail-Followup-To: Jim Blandy , Petr Sorfa , gdb-patches@sources.redhat.com References: <3D2C3C5F.A74215A4@caldera.com> <20020710140354.GA25081@nevyn.them.org> <3D2C4567.3AD10A8B@caldera.com> <20020710142554.GA26025@nevyn.them.org> <3D2C66E9.94EE977@caldera.com> <3D2C6B1B.B9DA55FC@caldera.com> <3D2C7D37.6D96ABD5@caldera.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i X-SW-Source: 2002-07/txt/msg00198.txt.bz2 On Wed, Jul 10, 2002 at 01:40:58PM -0500, Jim Blandy wrote: > > Petr Sorfa writes: > > > Okay, I'll look forward to the patch. > > In a few minutes. > > > > > Is checking the calling convention really the approved technique for > > > recognizing a Fortran entry point in Dwarf 2? Is it really the case > > > that Fortran programs always only have one function with this calling > > > convention? Would your patch do something sensible if it found more > > > than one? > > Good question, the Dwarf standard V3 Draft 7 Page 44 says: > > > > "The DW_CC_program value is intended to support Fortran main programs. > > It is not intended as > > a way of finding the entry address for the program." > > > > So the answer is yes and no. But I think the patch is valid as it > > determines not the entry point, but the main program. As far as I am > > aware you can have only one PROGRAM entry per FORTRAN program. If there > > is more than one found, the patch just uses the last read entry. I don't > > think supporting a more intricate way would be much use (such as keeping > > a list of DW_CC_program entries.) > > What's the difference between the entry point and the main program? The entry point is an implementation detail - like _start. The main program is in user code, main() or "program foo". -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer