[PR gdb/16238] Add completer for the show user command
authorLancelot SIX <lsix@lancelotsix.com>
Mon, 11 Oct 2021 22:42:33 +0000 (23:42 +0100)
committerLancelot SIX <lsix@lancelotsix.com>
Sun, 14 Nov 2021 13:50:30 +0000 (13:50 +0000)
commitcc81bc2dfbc0248ec0b00cea776f351bf8d4b235
treebfc9980ff376eb6e99a9554cc7ee65421f4848f0
parentb431e7a3fe8bcd47e38e5b5a6720272861449ed5
[PR gdb/16238] Add completer for the show user command

The 'show user' command (which shows the definition of non-python/scheme
user defined commands) is currently missing a completer. This is
mentioned in PR 16238.  Having one can improve the user experience.

In this commit I propose an implementation for such completer as well as
the associated tests.

Tested on x86_64 GNU/Linux.

All feedbacks are welcome.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=16238
gdb/cli/cli-cmds.c
gdb/testsuite/gdb.base/show-user-completion.exp [new file with mode: 0644]