8sa1-binutils-gdb/gdb/cli
Philippe Waroquiers be09caf15d Allow . character as part of command names.
This patch adds . as an allowed character for user defined commands.
Combined with 'define-prefix', this allows to e.g. define a set of Valgrind
specific user command corresponding to the Valgrind monitor commands
(such as check_memory, v.info, v.set, ...).

gdb/ChangeLog
2019-11-30  Philippe Waroquiers  <philippe.waroquiers@skynet.be>

	* command.h (valid_cmd_char_p): Declare.
	* cli/cli-decode.c (valid_cmd_char_p): New function factorizing
	the check of valid command char.
	(find_command_name_length, valid_user_defined_cmd_name_p): Use
	valid_cmd_char_p.
	* cli/cli-script.c (validate_comname): Likewise.
	* completer.c (gdb_completer_command_word_break_characters):
	Do not remove . from the word break char, update comments.
	(complete_line_internal_1): Use valid_cmd_char_p.
	* guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
	* python/py-cmd.c (gdbpy_parse_command_name): Likewise.

gdb/testsuite/ChangeLog
2019-11-30  Philippe Waroquiers  <philippe.waroquiers@skynet.be>

	* gdb.base/define.exp: Test . in command names.
	* gdb.base/setshow.exp: Update test, as . is now part of
	command name.
2019-11-30 09:37:49 +01:00
..
cli-cmds.c Replace SYMBOL_*_NAME accessors with member functions 2019-11-22 12:05:14 -06:00
cli-cmds.h Move declaration of max_user_call_depth to header 2019-10-12 14:31:26 -05:00
cli-decode.c Allow . character as part of command names. 2019-11-30 09:37:49 +01:00
cli-decode.h Let commands free "name" 2019-11-26 14:20:30 -07:00
cli-dump.c Remove some includes of readline.h 2019-11-06 07:29:43 -07: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 Use styled_string for "show logging filename" 2019-10-01 15:12:41 -06:00
cli-option.c Make first and last lines of 'command help documentation' consistent. 2019-08-07 00:04:33 +02:00
cli-option.h Change boolean options to bool instead of int 2019-09-18 09:35:12 +09:00
cli-script.c Allow . character as part of command names. 2019-11-30 09:37:49 +01:00
cli-script.h Don't include gdbarch.h from defs.h 2019-07-10 14:53:53 -06:00
cli-setshow.c Implement convenience functions to examine GDB settings. 2019-10-31 23:31:43 +01:00
cli-setshow.h Implement convenience functions to examine GDB settings. 2019-10-31 23:31:43 +01:00
cli-style.c [gdb] Fix set/show style metadata help text 2019-10-03 10:15:39 +02:00
cli-style.h Remove unused constructor declaration from cli_style_option 2019-11-10 09:48:42 -07:00
cli-utils.c gdb: Add new -n flag to some info commands 2019-08-27 16:21:42 +01:00
cli-utils.h [gdb] Fix more typos in comments (2) 2019-10-26 09:55:32 +02:00