From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8403 invoked by alias); 2 Jun 2010 23:03:17 -0000 Received: (qmail 8311 invoked by uid 22791); 2 Jun 2010 23:03:16 -0000 X-SWARE-Spam-Status: No, hits=-5.0 required=5.0 tests=AWL,BAYES_00,FAKE_REPLY_C,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 02 Jun 2010 23:03:12 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o52N2xVB032209 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 2 Jun 2010 19:02:59 -0400 Received: from host0.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o52N2sdw002319 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 2 Jun 2010 19:02:56 -0400 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.14.4/8.14.4) with ESMTP id o52N2srB005089; Thu, 3 Jun 2010 01:02:54 +0200 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.14.4/8.14.4/Submit) id o52N2sIl005088; Thu, 3 Jun 2010 01:02:54 +0200 Date: Wed, 02 Jun 2010 23:03:00 -0000 From: Jan Kratochvil To: Tom Tromey , Joel Brobecker Cc: gdb-patches@sourceware.org Subject: Re: [patch] Extend Fortran detection filename extensions Message-ID: <20100602230253.GA5045@host0.dyn.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100602225241.GG3019@adacore.com> User-Agent: Mutt/1.5.20 (2009-12-10) 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: 2010-06/txt/msg00090.txt.bz2 On Thu, 03 Jun 2010 00:03:14 +0200, Tom Tromey wrote: > This is ok. On Thu, 03 Jun 2010 00:52:41 +0200, Joel Brobecker wrote: > if adjust the comment to say that this *also* verifies that the language > is currently fortran, since the test itself seems to be important as well. I hope the extended comment is acceptable. Checked-in. Thanks, Jan http://sourceware.org/ml/gdb-cvs/2010-06/msg00028.html --- src/gdb/ChangeLog 2010/06/02 22:41:55 1.11867 +++ src/gdb/ChangeLog 2010/06/02 23:01:00 1.11868 @@ -1,5 +1,11 @@ 2010-06-02 Jan Kratochvil + * symfile.c (init_filename_language_table): New extensions .for, .FOR, + .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and + .F08. + +2010-06-02 Jan Kratochvil + Support DW_TAG_module as separate namespaces. * dwarf2read.c (typename_concat): New parameter physname. (read_module_type): New function and declaration. --- src/gdb/testsuite/ChangeLog 2010/06/02 22:41:56 1.2310 +++ src/gdb/testsuite/ChangeLog 2010/06/02 23:01:01 1.2311 @@ -1,5 +1,9 @@ 2010-06-02 Jan Kratochvil + * gdb.fortran/module.exp (stopped language detection): New test. + +2010-06-02 Jan Kratochvil + Support DW_TAG_module as separate namespaces. * gdb.fortran/library-module.exp, gdb.fortran/library-module-main.f90, gdb.fortran/library-module-lib.f90: New. --- src/gdb/symfile.c 2010/05/16 23:49:58 1.287 +++ src/gdb/symfile.c 2010/06/02 23:01:00 1.288 @@ -2633,6 +2633,20 @@ add_filename_language (".m", language_objc); add_filename_language (".f", language_fortran); add_filename_language (".F", language_fortran); + add_filename_language (".for", language_fortran); + add_filename_language (".FOR", language_fortran); + add_filename_language (".ftn", language_fortran); + add_filename_language (".FTN", language_fortran); + add_filename_language (".fpp", language_fortran); + add_filename_language (".FPP", language_fortran); + add_filename_language (".f90", language_fortran); + add_filename_language (".F90", language_fortran); + add_filename_language (".f95", language_fortran); + add_filename_language (".F95", language_fortran); + add_filename_language (".f03", language_fortran); + add_filename_language (".F03", language_fortran); + add_filename_language (".f08", language_fortran); + add_filename_language (".F08", language_fortran); add_filename_language (".s", language_asm); add_filename_language (".sx", language_asm); add_filename_language (".S", language_asm); --- src/gdb/testsuite/gdb.fortran/module.exp 2010/06/02 22:41:56 1.3 +++ src/gdb/testsuite/gdb.fortran/module.exp 2010/06/02 23:01:01 1.4 @@ -20,6 +20,12 @@ return -1 } +# Test automatic language detection before the inferior starts. It tests the +# effect of expected: +# (gdb) show language +# The current source language is "auto; currently fortran". +gdb_test "p modmany::var_i" " = 14" "stopped language detection" + if ![runto MAIN__] then { perror "couldn't run to breakpoint MAIN__" continue