gdb: Add command completers for some info commands
authorAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 11 Jul 2019 14:39:55 +0000 (15:39 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 11 Jul 2019 19:19:24 +0000 (20:19 +0100)
commit60cfcb20ce8f95a6f71f68c51b295defa5d27032
tree2037083f33150d7dc6e6d3be5ae62047d4c7d235
parentb16507e0917169555f8bbfcb1d6c9685813ccf6c
gdb: Add command completers for some info commands

Add command completion for info variables, functions, args, and
locals.  This completer only completes the command line options as
these commands all take a regexp which GDB can't really offer
completions for.

gdb/ChangeLog:

* cli/cli-utils.c (info_print_command_completer): New function.
* cli/cli-utils.h: Add 'completer.h' include, and forward
declaration for 'struct cmd_list_element'.
(info_print_command_completer): Declare.
* stack.c (_initialize_stack): Add completer for 'info locals' and
'info args'.
* symtab.c (_initialize_symtab): Add completer for 'info
variables' and 'info functions'.
* NEWS: Mention completion for additional info commands.
gdb/ChangeLog
gdb/NEWS
gdb/cli/cli-utils.c
gdb/cli/cli-utils.h
gdb/stack.c
gdb/symtab.c
This page took 0.024499 seconds and 4 git commands to generate.