From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19339 invoked by alias); 10 Jul 2002 19:32:24 -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 19330 invoked from network); 10 Jul 2002 19:32:23 -0000 Received: from unknown (HELO zwingli.cygnus.com) (208.245.165.35) by sources.redhat.com with SMTP; 10 Jul 2002 19:32:23 -0000 Received: by zwingli.cygnus.com (Postfix, from userid 442) id 3D6365EA11; Wed, 10 Jul 2002 14:32:19 -0500 (EST) To: Daniel Jacobowitz Cc: Petr Sorfa , gdb-patches@sources.redhat.com Subject: Re: [PATCH] DW_AT_calling_convention support 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> <20020710184750.GB923@nevyn.them.org> From: Jim Blandy Date: Wed, 10 Jul 2002 12:35:00 -0000 In-Reply-To: <20020710184750.GB923@nevyn.them.org> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-07/txt/msg00201.txt.bz2 Daniel Jacobowitz writes: > 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". I see. I've read the Dwarf spec again, and it makes more sense to me now. I'll try to review the patch later today.