old-cross-binutils/gdb/testsuite/gdb.fortran
Keven Boell 530e8392d7 fortran: enable ptype/whatis for modules.
Added new domain MODULE_DOMAIN for fortran modules to avoid
issues with sharing namespaces (e.g. when a variable currently
in scope has the same name as a module).

	(gdb) ptype modname
	old> No symbol "modname" in current context.
	new> type = module modname

This fixes PR 15209 and also addresses the issue
with sharing namespaces:
https://sourceware.org/ml/gdb-patches/2013-02/msg00643.html

2013-11-19  Keven Boell  <keven.boell@intel.com>
            Sanimir Agovic  <sanimir.agovic@intel.com>

	* cp-namespace.c (cp_lookup_nested_symbol): Enable
	nested lookups for fortran modules.
	* dwarf2read.c (read_module): Add fortran module to
	the symbol table.
	(add_partial_symbol, add_partial_module): Add fortran
	module to the partial symbol table.
	(new_symbol_full): Create full symbol for fortran module.
	* f-exp.y (yylex): Add new module domain to be parsed.
	* symtab.h: New domain for fortran modules.

testsuite/

	* gdb.fortran/module.exp: Completion matches fortran module
	names as well. ptype/whatis on modules return a proper type.
	Add new check for having the correct scope.
2013-12-19 13:18:21 +01:00
..
array-element.exp
array-element.f
charset.exp
charset.f90
common-block.exp
common-block.f90
complex.exp
complex.f
derived-type.exp
derived-type.f90
exprs.exp
library-module-lib.f90
library-module-main.f90
library-module.exp
logical.exp
logical.f90
Makefile.in
module.exp
module.f90
multi-dim.exp
multi-dim.f90
subarray.exp Update years in copyright notice for the GDB files. 2013-01-01 06:41:43 +00:00
subarray.f
type.f90
types.exp
whatis_type.exp