From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26931 invoked by alias); 25 Oct 2007 19:27:29 -0000 Received: (qmail 26915 invoked by uid 22791); 25 Oct 2007 19:27:29 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 25 Oct 2007 19:27:27 +0000 Received: (qmail 19696 invoked from network); 25 Oct 2007 19:27:25 -0000 Received: from unknown (HELO localhost) (jimb@127.0.0.2) by mail.codesourcery.com with ESMTPA; 25 Oct 2007 19:27:25 -0000 To: gdb@sourceware.org Subject: Re: Problems while debugging fortran References: <19c433eb0710250906k392cecf8t1f99595d5c5a8107@mail.gmail.com> <20071025170621.GA27275@caradoc.them.org> <20071025190150.GA1560@caradoc.them.org> From: Jim Blandy Date: Thu, 25 Oct 2007 19:27:00 -0000 In-Reply-To: <20071025190150.GA1560@caradoc.them.org> (Daniel Jacobowitz's message of "Thu, 25 Oct 2007 15:01:50 -0400") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes 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/msg00241.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. */