8sa1-binutils-gdb/gdb/cli
Pedro Alves 597bf39df9 Remove "show" command completers, "set" command completers for string commands
The default command completer is symbol_completer, but it makes no
sense for a "show" command to complete on symbols, or anything else,
really.

I wonder whether we should instead make the default be no completer.
That seems like a much larger/complicated audit/change, so I'd like to
move forward with this version, as it'll be covered by tests.  I
noticed this because a following patch will add a new
gdb.base/settings.exp testcase that exercises all sorts of details of
settings commands, including completing the show commands, using new
representative "maint test-settings <type or settings command>"
commands.

Also remove the completer for var_string and var_string_noescape
commands.  No point in completing symbols when GDB is expecting a
string.

gdb/ChangeLog:
2019-06-13  Pedro Alves  <palves@redhat.com>

	* cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
	completer.
	(add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
	"set" completers.
2019-06-13 00:10:03 +01:00
..
cli-cmds.c Make check_for_argument skip whitespace after arg itself 2019-06-13 00:08:50 +01:00
cli-cmds.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
cli-decode.c Remove "show" command completers, "set" command completers for string commands 2019-06-13 00:10:03 +01:00
cli-decode.h Improve usability and/or readibility of help and apropos output. 2019-06-03 21:59:18 +02: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 Add debug redirect option 2019-05-17 14:21:47 +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 Fix "set enum-command value junk" 2019-06-13 00:09:37 +01:00
cli-setshow.h Normalize include guards in gdb 2019-02-07 03:27:23 -07: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 check_for_argument skip whitespace after arg itself 2019-06-13 00:08:50 +01:00
cli-utils.h Make check_for_argument skip whitespace after arg itself 2019-06-13 00:08:50 +01:00