[review v3] gdb/mi: Add new commands -symbol-info-{functions,variables,types}
Eli Zaretskii
eliz@gnu.org
Fri Nov 8 10:10:00 GMT 2019
> Date: Thu, 7 Nov 2019 19:50:32 -0500
> From: "Andrew Burgess (Code Review)" <gerrit@gnutoolchain-gerrit.osci.io>
>
> gdb/mi: Add new commands -symbol-info-{functions,variables,types}
>
> Add new MI commands -symbol-info-functions, -symbol-info-variables,
> and -symbol-info-types which correspond to the CLI commands 'info
> functions', 'info variables', and 'info types' respectively.
>
> gdb/ChangeLog:
>
> * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
> '-symbol-info-variables', and '-symbol-info-types'.
> * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
> (mi_cmd_symbol_info_variables): Declare.
> (mi_cmd_symbol_info_types): Declare.
> * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
> (mi_info_one_symbol_details): New function.
> (class mi_symbol_info_emitter): New class.
> (mi_symbol_info): New function.
> (mi_info_functions_or_variables): New function.
> (mi_cmd_symbol_info_functions): New function.
> (mi_cmd_symbol_info_types): New function.
> (mi_cmd_symbol_info_variables): New function.
> * NEWS: Mention new commands.
>
> gdb/testsuite/ChangeLog:
>
> * gdb.mi/mi-sym-info-1.c: New file.
> * gdb.mi/mi-sym-info-2.c: New file.
> * gdb.mi/mi-sym-info.exp: New file.
>
> gdb/doc/ChangeLog:
>
> * doc/gdb.texinfo (GDB/MI Symbol Query): Document new MI command
> -symbol-info-functions, -symbol-info-types, and
> -symbol-info-variables.
OK for the documentation parts.
Thanks.
More information about the Gdb-patches
mailing list