Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Tom Tromey <tromey@redhat.com>, Joel Brobecker <brobecker@adacore.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [patch] Extend Fortran detection filename extensions
Date: Wed, 02 Jun 2010 23:03:00 -0000	[thread overview]
Message-ID: <20100602230253.GA5045@host0.dyn.jankratochvil.net> (raw)
In-Reply-To: <20100602225241.GG3019@adacore.com> <m3zkzd149p.fsf@fleche.redhat.com>

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  <jan.kratochvil@redhat.com>
 
+	* 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  <jan.kratochvil@redhat.com>
+
 	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  <jan.kratochvil@redhat.com>
 
+	* gdb.fortran/module.exp (stopped language detection): New test.
+
+2010-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
 	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


  reply	other threads:[~2010-06-02 23:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-02 21:41 Jan Kratochvil
2010-06-02 22:03 ` Tom Tromey
2010-06-02 23:03   ` Jan Kratochvil [this message]
2010-06-02 22:06 ` Joel Brobecker
2010-06-02 22:37   ` Jan Kratochvil
2010-06-02 22:52     ` Joel Brobecker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100602230253.GA5045@host0.dyn.jankratochvil.net \
    --to=jan.kratochvil@redhat.com \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=tromey@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox