fortran: enable ptype/whatis for user defined types.
authorKeven Boell <keven.boell@intel.com>
Fri, 25 Oct 2013 11:10:57 +0000 (12:10 +0100)
committerKeven Boell <keven.boell@intel.com>
Thu, 19 Dec 2013 12:18:11 +0000 (13:18 +0100)
commit7f9b20bb352768e14cfa7361a82373b8539bebed
tree34deb1ab6cadd180d1b66111fb3b8c98685e6879
parentf6ec89e7bc631c0bd48cb6c4b960b29266e19550
fortran: enable ptype/whatis for user defined types.

(gdb) ptype type
old> No symbol "type" in current context.
new> type = Type type
     integer(kind=4) :: t_i
     End Type type

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

* f-exp.y (yylex): Add domain array to enable lookup
in multiple domains. Loop over lookup domains and try
to find requested symbol. Add STRUCT_DOMAIN to lookup
domains to be able to query for user defined types.

testsuite/
* gdb.fortran/type.f90: New file.
* gdb.fortran/whatis_type.f90: New file.
ChangeLog
gdb/f-exp.y
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.fortran/type.f90 [new file with mode: 0644]
gdb/testsuite/gdb.fortran/whatis_type.exp [new file with mode: 0644]