From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12106 invoked by alias); 25 Oct 2007 13:23:14 -0000 Received: (qmail 12088 invoked by uid 22791); 25 Oct 2007 13:23:13 -0000 X-Spam-Check-By: sourceware.org Received: from igw1.br.ibm.com (HELO igw1.br.ibm.com) (32.104.18.24) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 25 Oct 2007 13:23:04 +0000 Received: from mailhub3.br.ibm.com (mailhub3 [9.18.232.110]) by igw1.br.ibm.com (Postfix) with ESMTP id CE6D632C00B for ; Thu, 25 Oct 2007 11:20:30 -0200 (BRDT) Received: from d24av02.br.ibm.com (d24av02.br.ibm.com [9.18.232.47]) by mailhub3.br.ibm.com (8.13.8/8.13.8/NCO v8.5) with ESMTP id l9PDMxYj2916580 for ; Thu, 25 Oct 2007 11:22:59 -0200 Received: from d24av02.br.ibm.com (loopback [127.0.0.1]) by d24av02.br.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l9PDMwb3026294 for ; Thu, 25 Oct 2007 10:22:59 -0300 Received: from [9.18.238.59] ([9.18.238.59]) by d24av02.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l9PDMwsn026284; Thu, 25 Oct 2007 10:22:58 -0300 Message-ID: <472098B2.5010605@linux.vnet.ibm.com> Date: Thu, 25 Oct 2007 14:10:00 -0000 From: Carlos Eduardo Seo User-Agent: Thunderbird 2.0.0.6 (X11/20070907) MIME-Version: 1.0 To: Joel Brobecker CC: gdb-patches@sourceware.org Subject: Re: Problems while debugging fortran References: <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> <20071024193336.GI11797@adacore.com> <20071024195719.GA16009@caradoc.them.org> <471FA810.6080506@linux.vnet.ibm.com> <471FBF9E.5000607@linux.vnet.ibm.com> <20071024220648.GL11797@adacore.com> In-Reply-To: <20071024220648.GL11797@adacore.com> OpenPGP: id=8BFFA900 Content-Type: multipart/mixed; boundary="------------010603010206010305090507" X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-10/txt/msg00652.txt.bz2 This is a multi-part message in MIME format. --------------010603010206010305090507 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-length: 700 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Joel Brobecker wrote: > [moving to gdb-patches] > > This is close to what I had in mind, but I would personally prefer > to limit this to Fortran compilation units. The semantics of this > attribute value are still a bit unclear, and I'd like us to be cautious > in its usage. > Restricted this to Fortran. Ok to commit now? - -- 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 iD8DBQFHIJixqvq7Aov/qQARAh48AJ48hFyPjN24ewQTVU2QIxOrf4PHwACcD9wk 0G1NiOtDHkaBSQyBhyTnbIg= =Bh+k -----END PGP SIGNATURE----- --------------010603010206010305090507 Content-Type: text/x-patch; name="fortran-main.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="fortran-main.diff" Content-length: 878 2007-10-25 Wu Zhou Carlos Eduardo Seo * dwarf2read.c (read_partial_die): check the value of DW_AT_calling_convention in Fortran programs. Index: src/gdb/dwarf2read.c =================================================================== --- src.orig/gdb/dwarf2read.c +++ src/gdb/dwarf2read.c @@ -5616,6 +5616,13 @@ read_partial_die (struct partial_die_inf case DW_AT_byte_size: part_die->has_byte_size = 1; break; + case DW_AT_calling_convention: + /* DWARF standard suggests to use value DW_CC_program of attribute + DW_AT_calling_convention to indicate the Fortran main program. + The following code is to check this. */ + if ((DW_UNSND (&attr) == DW_CC_program) && (cu->language == language_fortran)) + set_main_name (part_die->name); + break; default: break; } --------------010603010206010305090507 Content-Type: application/octet-stream; name="fortran-main.diff.sig" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="fortran-main.diff.sig" Content-length: 90 iD8DBQBHIJiyqvq7Aov/qQARAnCIAJ967Tl7q5v8jljV6X+r8/fizSK0jgCf ZNV4TVfpNvb1TmWCuYmn+HUvDDE= --------------010603010206010305090507--