From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27274 invoked by alias); 25 Oct 2007 20:24:13 -0000 Received: (qmail 27263 invoked by uid 22791); 25 Oct 2007 20:24:12 -0000 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 25 Oct 2007 20:24:10 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id C5D272AB4B7; Thu, 25 Oct 2007 16:24:08 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id RV4YbzFl7PZN; Thu, 25 Oct 2007 16:24:08 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 8DBB72AB435; Thu, 25 Oct 2007 16:24:08 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 53FAEE7AC8; Thu, 25 Oct 2007 13:24:06 -0700 (PDT) Date: Thu, 25 Oct 2007 20:24:00 -0000 From: Joel Brobecker To: Jim Blandy Cc: gdb@sourceware.org Subject: Re: Problems while debugging fortran Message-ID: <20071025202406.GC4063@adacore.com> References: <19c433eb0710250906k392cecf8t1f99595d5c5a8107@mail.gmail.com> <20071025170621.GA27275@caradoc.them.org> <20071025190150.GA1560@caradoc.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-10/txt/msg00242.txt.bz2 > Here's a revised comment that may explain what's going on better: > > /* DWARF doesn't provide a way to identify a program's source-level > entry point. DW_AT_calling_convention attributes are only meant > to describe functions' calling conventions. > > However, because it's a necessary piece of information in > Fortran, and because DW_CC_program is the only piece of debugging > information whose definition refers to a 'main program' at all, > several compilers have begun marking Fortran main programs with > DW_CC_program --- even when those functions use the standard > calling conventions. > > So until DWARF specifies a way to provide this information and > compilers pick up the new representation, we'll support this > practice. */ I think that's a great comment. Let's use that one. -- Joel