This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/7] Fortran info types, info modules, info module ...
- From: Andrew Burgess <andrew dot burgess at embecosm dot com>
- To: gdb-patches at sourceware dot org
- Cc: Richard Bunt <Richard dot Bunt at arm dot com>, Andrew Burgess <andrew dot burgess at embecosm dot com>
- Date: Sat, 27 Jul 2019 17:22:28 +0100
- Subject: [PATCH 0/7] Fortran info types, info modules, info module ...
A set of patches working toward the goal of adding some new commands
related to Fortran modules.
#1 - Not Fortran related at all, just adds a new flag to the "info
functions" and "info variables" commands.
#2 - In preparation for patch #3.
#3 - Ensure Fortran variables from modules show up in "info
variables" output.
#4 - Fix "info types" for Fortran.
#5 - We create a symbol for each Fortran module, don't show this in
the "info types" output.
#6 - New command "info modules", list all Fortran modules.
#7 - Two new commands "info module functions" and "info module
variables", these are like "info functions" and "info variables",
but with a module twist.
Thanks,
Andrew
---
Andrew Burgess (7):
gdb: Add new -n flag to some info commands
gdb: Add an is_declaration field to each symbol
gdb/fortran: Include module variables in 'info variables' output
gdb/fortran: Implement la_print_typedef for Fortran
gdb/fortran: Don't include module symbols when searching for types
gdb/fortran: Add new 'info modules' command
gdb: Add new commands to list module variables and functions
gdb/ChangeLog | 90 ++++++
gdb/NEWS | 24 ++
gdb/cli/cli-utils.c | 65 +---
gdb/cli/cli-utils.h | 39 +--
gdb/doc/ChangeLog | 14 +
gdb/doc/gdb.texinfo | 66 +++-
gdb/dwarf2read.c | 11 +
gdb/f-lang.c | 2 +-
gdb/f-lang.h | 5 +
gdb/f-typeprint.c | 11 +
gdb/psymtab.c | 2 +
gdb/python/python.c | 4 +-
gdb/stack.c | 77 ++++-
gdb/symtab.c | 471 +++++++++++++++++++++++++++--
gdb/symtab.h | 12 +-
gdb/testsuite/ChangeLog | 39 +++
gdb/testsuite/gdb.base/info-fun.exp | 97 +++---
gdb/testsuite/gdb.base/info-var-f1.c | 24 ++
gdb/testsuite/gdb.base/info-var-f2.c | 26 ++
gdb/testsuite/gdb.base/info-var.exp | 60 ++++
gdb/testsuite/gdb.base/info-var.h | 18 ++
gdb/testsuite/gdb.fortran/info-modules.exp | 180 +++++++++++
gdb/testsuite/gdb.fortran/info-types.exp | 49 +++
gdb/testsuite/gdb.fortran/info-types.f90 | 72 +++++
gdb/testsuite/gdb.fortran/module.exp | 24 ++
gdb/testsuite/lib/fortran.exp | 12 +
26 files changed, 1323 insertions(+), 171 deletions(-)
create mode 100644 gdb/testsuite/gdb.base/info-var-f1.c
create mode 100644 gdb/testsuite/gdb.base/info-var-f2.c
create mode 100644 gdb/testsuite/gdb.base/info-var.exp
create mode 100644 gdb/testsuite/gdb.base/info-var.h
create mode 100644 gdb/testsuite/gdb.fortran/info-modules.exp
create mode 100644 gdb/testsuite/gdb.fortran/info-types.exp
create mode 100644 gdb/testsuite/gdb.fortran/info-types.f90
--
2.14.5