From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7148 invoked by alias); 24 Oct 2007 19:33:45 -0000 Received: (qmail 7135 invoked by uid 22791); 24 Oct 2007 19:33:44 -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; Wed, 24 Oct 2007 19:33:40 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id B0CA62A9AF4; Wed, 24 Oct 2007 15:33:38 -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 wJZxvpdAfDHx; Wed, 24 Oct 2007 15:33:38 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 6C45A2A97A9; Wed, 24 Oct 2007 15:33:38 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 61F77E7AC8; Wed, 24 Oct 2007 12:33:36 -0700 (PDT) Date: Wed, 24 Oct 2007 19:33:00 -0000 From: Joel Brobecker To: Carlos Eduardo Seo Cc: Daniel Jacobowitz , gdb@sourceware.org Subject: Re: Problems while debugging fortran Message-ID: <20071024193336.GI11797@adacore.com> References: <46EB035B.4090802@linux.vnet.ibm.com> <20070920173246.GJ16400@adacore.com> <46F2CE45.5020308@linux.vnet.ibm.com> <20070920204622.GB4368@adacore.com> <20070920205629.GA17779@caradoc.them.org> <46FAD136.5030406@linux.vnet.ibm.com> <20070926214619.GC9403@adacore.com> <471F70C0.3000206@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <471F70C0.3000206@linux.vnet.ibm.com> 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/msg00203.txt.bz2 > The compiler is XLF and the only way it tags the "main" function is by > adding DW_AT_calling_convention = DW_CC_program. Unfortunately, I > don't have any control over the compiler, so I'm stuck with this. Any > other thoughts? Apart from using "DW_AT_calling_convention = DW_CC_program", not much, no. The idea is to try to find something that is unique to the main function. Sometimes it's the naming of the function, but it could be something else. Question to the other GDB contributors/maintainers: Is it going to hurt GDB if we fallback to using "DW_AT_calling_convention = DW_CC_program" to find the main? The DWARF3 manual says that this attribute value was <>. This is very unclear, since they don't explain what "support" refers to. But for people stuck with XLF, if we can improve their lives without hurting the rest of GDB, I'm ok with compromising and using this attribute value be used to find the main. -- Joel