gdb: Switch "info types" over to use the gdb::options framework
authorAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 11 Jul 2019 20:02:59 +0000 (21:02 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 22 Jul 2019 09:43:00 +0000 (10:43 +0100)
commita8eab7c6d529ddd248ff5243bb22e9346196e376
tree00960f66becd428c1f7ceb20b862e14de0a37b86
parentb4603c34644847e2113e8c29408db09049c5c30f
gdb: Switch "info types" over to use the gdb::options framework

Adds a new -q flag to "info types" using the gdb::option framework.
This -q flag is similar to the -q flag already present for "info
variables" and "info functions".

gdb/ChangeLog:

* NEWS: Mention adding -q option to "info types".
* symtab.c (struct info_types_options): New struct.
(info_types_options_defs): New variable.
(make_info_types_options_def_group): New function.
(info_types_command): Use gdb::option framework to parse options.
(info_types_command_completer): New function.
(_initialize_symtab): Extend the help text on "info types" and
register command completer.

gdb/doc/ChangeLog:

* gdb.texinfo (Symbols): Add information about -q flag to "info
types".
gdb/ChangeLog
gdb/NEWS
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/symtab.c