This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH v2 0/2] enable ptype/whatis for fortran types/modules
- From: Keven Boell <keven dot boell at intel dot com>
- To: gdb-patches at sourceware dot org
- Cc: keven dot boell at intel dot com, sanimir dot agovic at intel dot com
- Date: Wed, 11 Dec 2013 13:35:10 +0100
- Subject: [PATCH v2 0/2] enable ptype/whatis for fortran types/modules
- Authentication-results: sourceware.org; auth=none
This patch series enables ptype/whatis for fortran
user defined types and modules.
Recognize fortran 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
Recognize fortran modules:
(gdb) ptype modname
old> No symbol "modname" in current context.
new> type = module modname
Keven Boell (1):
fortran: enable ptype/whatis for modules.
Sanimir Agovic (1):
fortran: enable ptype/whatis for user defined types.
gdb/cp-namespace.c | 1 +
gdb/dwarf2read.c | 20 ++++++++++++
gdb/f-exp.y | 34 ++++++++++++--------
gdb/symtab.h | 4 +++
gdb/testsuite/gdb.fortran/module.exp | 13 ++++++--
gdb/testsuite/gdb.fortran/module.f90 | 12 ++++++++
gdb/testsuite/gdb.fortran/type.f90 | 28 +++++++++++++++++
gdb/testsuite/gdb.fortran/whatis_type.exp | 48 +++++++++++++++++++++++++++++
8 files changed, 145 insertions(+), 15 deletions(-)
create mode 100644 gdb/testsuite/gdb.fortran/type.f90
create mode 100644 gdb/testsuite/gdb.fortran/whatis_type.exp
--
1.7.9.5