[patch] Extend Fortran detection filename extensions

Joel Brobecker brobecker@adacore.com
Wed Jun 2 22:52:00 GMT 2010


> > > +# Test automatic language detection before the inferior starts.
> > > +gdb_test "p modmany::var_i" " = 14" "stopped language detection"
> > 
> > Why not just do "show language"?
> 
> I believe this testcase should be in place as it tests it all together.
> 
> There could be probably also an isolated new testcase.  I was not sure if
> there would not be one day changes in how Fortran language variants get
> detected and called in `show language'.  But I understand in such case even
> the testcases must be changed.
> 
> Should I submit a separate testfile for it?

It's not very important, IMO. I'm happy with the above especially if
you 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.

-- 
Joel



More information about the Gdb-patches mailing list