This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Extend Fortran detection filename extensions
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 2 Jun 2010 15:06:22 -0700
- Subject: Re: [patch] Extend Fortran detection filename extensions
- References: <20100602214059.GB30562@host0.dyn.jankratochvil.net>
> gdb/
> 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.
This seems reasonable to me. I wish I knew more languages that I do now,
but I don't see some of these extensions being used by other languages
as well. So this seems OK to me (and would be easy to adjust if someone
else has more info about a possible collision).
> gdb/testsuite/
> 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
>
> * gdb.fortran/module.exp (stopped language detection): New test.
A question about this new test (which is OK, btw).
> +# Test automatic language detection before the inferior starts.
> +gdb_test "p modmany::var_i" " = 14" "stopped language detection"
Why not just do "show language"?
--
Joel