aboutsummaryrefslogtreecommitdiff
path: root/gdb/ui-file.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2019-07-03 16:57:51 +0100
committerPedro Alves <palves@redhat.com>2019-07-03 17:18:54 +0100
commit5f4ba3e701d74f280d4bd8820d9c39a854e0d2cf (patch)
treee3b67db8010eb2372226f3fbd5a33c2e5edbb8b3 /gdb/ui-file.c
parenta994424fa1e80d982644038f1ce6538e247aeed1 (diff)
downloadbinutils-5f4ba3e701d74f280d4bd8820d9c39a854e0d2cf.zip
binutils-5f4ba3e701d74f280d4bd8820d9c39a854e0d2cf.tar.gz
binutils-5f4ba3e701d74f280d4bd8820d9c39a854e0d2cf.tar.bz2
pipe command completer
This commit adds a completer for the "pipe" command. It can complete "pipe"'s options, and the specified GDB command. To make the completer aware of the "-d" option, this converts the option processing to use gdb::option. Tests included. gdb/ChangeLog: 2019-07-03 Pedro Alves <palves@redhat.com> PR cli/24732 * cli/cli-cmds.c (struct pipe_cmd_opts): New. (pipe_cmd_option_defs): New. (make_pipe_cmd_options_def_group): New. (pipe_command): Use gdb::option::process_options. (pipe_command_completer): New function. (_initialize_cli_cmds): Install completer for "pipe" command. gdb/testsuite/ChangeLog: 2019-07-03 Pedro Alves <palves@redhat.com> PR cli/24732 * gdb.base/shell.exp: Load completion-support.exp. Adjust expected error output. Add completion tests.
Diffstat (limited to 'gdb/ui-file.c')
0 files changed, 0 insertions, 0 deletions