binutils-gdb/gdb/cli
Philippe Waroquiers c6ac7fc987 Implement user defined prefix.
This patch adds the new 'define-prefix' command that creates (or mark an
existing user defined command) as a prefix command.
This approach was preferred compared to add a -prefix option to
'define' command : with define-prefix, a command can be defined and
afterwards marked as a prefix.  Also, it is easier to define a
'prefix' only command in one operation.

This patch also adds completers for the 'define' and 'document' commands.
This makes it easier for the user to type the prefixes for 'define'
and type the documented command name for 'document'.

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

	* cli/cli-script.c (do_define_command): Ensure a redefined
	prefix command is kept as a prefix command.
	(define_prefix_command): New function.
	(show_user_1): Report user defined prefixes.
	(_initialize_cli_script):  Create the new 'define-prefix' command.
	Add completers for 'define' and 'document'.
	* top.c (execute_command):  If command is a user-defined prefix only
	command, report the list of commands for this prefix command.
2019-11-30 09:36:19 +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 [gdb] Fix more typos in comments (2) 2019-10-26 09:55:32 +02: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 Implement user defined prefix. 2019-11-30 09:36:19 +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