From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2658 invoked by alias); 26 Sep 2007 21:38:02 -0000 Received: (qmail 2650 invoked by uid 22791); 26 Sep 2007 21:38:02 -0000 X-Spam-Check-By: sourceware.org Received: from igw2.br.ibm.com (HELO igw2.br.ibm.com) (32.104.18.25) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 26 Sep 2007 21:38:00 +0000 Received: from mailhub3.br.ibm.com (mailhub3 [9.18.232.110]) by igw2.br.ibm.com (Postfix) with ESMTP id BB90C17F5C2 for ; Wed, 26 Sep 2007 18:35:39 -0300 (BRT) Received: from d24av01.br.ibm.com (d24av01.br.ibm.com [9.18.232.46]) by mailhub3.br.ibm.com (8.13.8/8.13.8/NCO v8.5) with ESMTP id l8QLbv6j2896120 for ; Wed, 26 Sep 2007 18:37:57 -0300 Received: from d24av01.br.ibm.com (loopback [127.0.0.1]) by d24av01.br.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l8QLbvkm026710 for ; Wed, 26 Sep 2007 18:37:57 -0300 Received: from [9.18.238.59] (dyn531792.br.ibm.com [9.18.238.59]) by d24av01.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l8QLbuak026705; Wed, 26 Sep 2007 18:37:56 -0300 Message-ID: <46FAD136.5030406@linux.vnet.ibm.com> Date: Wed, 26 Sep 2007 21:46:00 -0000 From: Carlos Eduardo Seo User-Agent: Thunderbird 2.0.0.6 (X11/20070907) MIME-Version: 1.0 To: Daniel Jacobowitz CC: gdb@sourceware.org, brobecker@adacore.com Subject: Re: Problems while debugging fortran 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> In-Reply-To: <20070920205629.GA17779@caradoc.them.org> OpenPGP: id=8BFFA900 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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-09/txt/msg00220.txt.bz2 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Daniel Jacobowitz wrote: > > Here's a relevant patch from the Debian packages of GDB. As you can > see it comes from a mailing list message - I don't remember exactly > who submitted it without looking it up and I don't remember exactly > why it was never committed, but it was probably Wu Zhou and it was > probably never merged because of the larger issue of symbol case > sensitivity. This patch works fine _if_ the compiler is gfortran/g77. However, not all compilers call the program by "MAIN__". So, I was thinking about having something in symtab.c:find_main_name that checks DW_CC_program value if the language is Fortran and get the name from the main routine from DW_AT_name. Is that an acceptable solution? Regards, - -- Carlos Eduardo Seo Software Engineer IBM Linux Technology Center -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG+tE1qvq7Aov/qQARAprFAJ0aijQ2D6Mhuc4e4mGr/y1VAskdfgCfQeXT /47+1mSHn6XRATG0ihLyUo0= =DbGQ -----END PGP SIGNATURE-----