diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2019-07-11 21:02:59 +0100 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2019-07-22 10:43:00 +0100 |
commit | a8eab7c6d529ddd248ff5243bb22e9346196e376 (patch) | |
tree | 00960f66becd428c1f7ceb20b862e14de0a37b86 /gdb/doc | |
parent | Add ChangeLog entry for the last commit (diff) | |
download | binutils-gdb-a8eab7c6d529ddd248ff5243bb22e9346196e376.tar.gz binutils-gdb-a8eab7c6d529ddd248ff5243bb22e9346196e376.tar.bz2 binutils-gdb-a8eab7c6d529ddd248ff5243bb22e9346196e376.zip |
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".
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 8 |
2 files changed, 11 insertions, 2 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 948b2b2c04b..ca0e3ee1155 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com> + + * gdb.texinfo (Symbols): Add information about -q flag to "info + types". + 2019-07-20 Kevin Buettner <kevinb@redhat.com> * python.texi (python command): Revise example to match diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index eddd939869a..be65d528d28 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -18428,8 +18428,7 @@ information. Inspecting the type of a (global) variable for which of such variables. @kindex info types -@item info types @var{regexp} -@itemx info types +@item info types [-q] [@var{regexp}] Print a brief description of all types whose names match the regular expression @var{regexp} (or all types in your program, if you supply no argument). Each complete typename is matched as though it were a @@ -18449,6 +18448,11 @@ This command differs from @code{ptype} in two ways: first, like @code{whatis}, it does not print a detailed description; second, it lists all source files and line numbers where a type is defined. +The output from @samp{into types} is proceeded with a header line +describing what types are being listed. The optional flag @samp{-q}, +which stands for @samp{quiet}, disables printing this header +information. + @kindex info type-printers @item info type-printers Versions of @value{GDBN} that ship with Python scripting enabled may |