binutils-gdb/gdb/cli
Pedro Alves 5f4ba3e701 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.
2019-07-03 17:18:54 +01:00
..
cli-cmds.c pipe command completer 2019-07-03 17:18:54 +01:00
cli-cmds.h Introduce the "with" command 2019-07-03 13:35:45 +01:00
cli-decode.c "set print raw frame-arguments" -> "set print raw-frame-arguments" 2019-06-13 00:18:41 +01:00
cli-decode.h Introduce generic command options framework 2019-06-13 00:18:12 +01:00
cli-dump.c Introduce and use make_unique_xstrdup 2019-06-04 22:48:32 +01:00
cli-interp.c Add debug redirect option 2019-05-17 14:21:47 +01:00
cli-interp.h Add debug redirect option 2019-05-17 14:21:47 +01:00
cli-logging.c Do not emit style escape sequences to log file 2019-06-14 14:13:29 -06:00
cli-option.c Teach gdb::option about string options 2019-07-03 16:59:24 +01:00
cli-option.h Teach gdb::option about string options 2019-07-03 16:59:24 +01:00
cli-script.c Replace throw_exception with throw in some cases 2019-04-08 09:05:41 -06:00
cli-script.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
cli-setshow.c Introduce the "with" command 2019-07-03 13:35:45 +01:00
cli-setshow.h Introduce the "with" command 2019-07-03 13:35:45 +01:00
cli-style.c Add highlight style, title style, fputs_highlighted. Improve 'show style' 2019-06-03 21:59:11 +02:00
cli-style.h Add highlight style, title style, fputs_highlighted. Improve 'show style' 2019-06-03 21:59:11 +02:00
cli-utils.c Make gdb::option::complete_options save processed arguments too 2019-07-03 16:58:30 +01:00
cli-utils.h Delete parse_flags/parse_flags_qcs 2019-06-13 00:24:17 +01:00