gdb/mi: Add -symbol-info-module-{variables,functions}
authorAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 4 Oct 2019 16:59:51 +0000 (17:59 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Wed, 4 Dec 2019 10:24:59 +0000 (10:24 +0000)
commit293b38d60f15422cf7e3d3ba06fdbc5cc90aee67
treed95a350a906bba209d71ad579864f79de84ed48e
parent0ba59a29407a9d24559a653ce0401a26d9a37aaa
gdb/mi: Add -symbol-info-module-{variables,functions}

Two new MI command -symbol-info-module-variables and
-symbol-info-module-functions, which are the equivalent of the CLI
command 'info module variables' and 'info module functions'.  These
return information about functions and variables within Fortran
modules.

gdb/ChangeLog:

* mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
-symbol-info-module-variables entries.
* mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
(mi_cmd_symbol_info_module_variables): Declare.
* mi/mi-symbol-cmds.c
(module_symbol_search_iterator): New typedef.
(output_module_symbols_in_single_module_and_file): New function.
(output_module_symbols_in_single_module): New function.
(mi_info_module_functions_or_variables): New function.
(mi_cmd_symbol_info_module_functions): New function.
(mi_cmd_symbol_info_module_variables): New function.
* NEWS: Mention new MI command.

gdb/doc/ChangeLog:

* doc/gdb.texinfo (GDB/MI Symbol Query): Document new MI command
-symbol-info-module-functions and -symbol-info-module-variables.

gdb/testsuite/ChangeLog:

* gdb.mi/mi-fortran-modules.exp: Add additional tests for
-symbol-info-module-functions and -symbol-info-module-variables.

Change-Id: Ic96f12dd14bd7e34774c3cde008fec30a4055bfe
gdb/ChangeLog
gdb/NEWS
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/mi/mi-cmds.c
gdb/mi/mi-cmds.h
gdb/mi/mi-symbol-cmds.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.mi/mi-fortran-modules.exp