This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 0/2] enable ptype/whatis for fortran types/modules

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]