diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-09-22 10:38:16 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2021-10-28 10:48:16 -0400 |
commit | a1ff87d77ca7fa851170702fd972ae3d31f2e378 (patch) | |
tree | 796e94e5e02072e993e0e6569e302b76d31d4116 /gdb/doc | |
parent | 2e466f72c43a515f4dac5c65cca5cdf3f24dad21 (diff) | |
download | binutils-a1ff87d77ca7fa851170702fd972ae3d31f2e378.zip binutils-a1ff87d77ca7fa851170702fd972ae3d31f2e378.tar.gz binutils-a1ff87d77ca7fa851170702fd972ae3d31f2e378.tar.bz2 |
gdb: add "maint set/show selftest verbose" commands and use process_options
I saw the new -verbose switch to "maint selftests" and thought it would
be nice for it to use the option framework. For example, that makes
having completion easy. It's not that high value, given this is a
maintenance command, but I had never used the framework myself, so it
was a good way to practice.
This patch also adds the "maint set/show selftest verbose" setting. It
would be possible to use option framework without adding the setting,
but using the framework makes adding the option almost trivial, so I
thought why not.
Change-Id: I6687faa0713ff3da60b398253211777100094144
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/gdb.texinfo | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 4fda34e..d52cec0 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -39478,6 +39478,13 @@ If a @var{filter} is passed, only the tests with @var{filter} in their name will be ran. If @code{-verbose} is passed, the self tests can be more verbose. +@kindex maint set selftest verbose +@kindex maint show selftest verbose +@cindex self tests +@item maint set selftest verbose +@item maint show selftest verbose +Control whether self tests are run verbosely or not. + @kindex maint info selftests @cindex self tests @item maint info selftests |