This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 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: sanimir dot agovic at intel dot com
- Date: Tue, 26 Nov 2013 11:12:58 +0100
- Subject: [PATCH 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 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 | 24 ++++++++++-----
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, 140 insertions(+), 10 deletions(-)
create mode 100644 gdb/testsuite/gdb.fortran/type.f90
create mode 100644 gdb/testsuite/gdb.fortran/whatis_type.exp
--
1.7.9.5