From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31855 invoked by alias); 10 Jul 2002 18:41:01 -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 31848 invoked from network); 10 Jul 2002 18:41:00 -0000 Received: from unknown (HELO zwingli.cygnus.com) (208.245.165.35) by sources.redhat.com with SMTP; 10 Jul 2002 18:41:00 -0000 Received: by zwingli.cygnus.com (Postfix, from userid 442) id 175025EA11; Wed, 10 Jul 2002 13:40:58 -0500 (EST) To: Petr Sorfa Cc: gdb-patches@sources.redhat.com Subject: Re: [PATCH] DW_AT_calling_convention support References: <3D2B5385.997D474D@caldera.com> <20020709211520.GA21948@nevyn.them.org> <3D2B576E.85B28074@caldera.com> <20020709215812.GA966@nevyn.them.org> <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> From: Jim Blandy Date: Wed, 10 Jul 2002 11:47:00 -0000 In-Reply-To: <3D2C7D37.6D96ABD5@caldera.com> 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/msg00196.txt.bz2 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?