binutils-gdb/gdb/cli
Tom Tromey b777eb6de2 Remove init_cli_cmds
I noticed that init_cli_cmds only installs a command, and so doesn't
need to be handled specially.  This patch merges it into
_initialize_cli_cmds.

The help text is constructed dynamically, which is sometimes an
indication that special treatment is needed; but in this case it is
just to insert the value of "gdbinit", which is created at
compile-time and not modified; so this doesn't affect the result.

This version also removes the "gdbinit" global.  There's no need for
it, as GDBINIT can be used instead.  Note, though, that the help text
in question must still be dynamically constructed, in order to be
i18n-friendly.

gdb/ChangeLog
2019-07-11  Tom Tromey  <tromey@adacore.com>

	* main.c (get_init_files): Use GDBINIT, not gdbinit.
	* auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
	* top.h (gdbinit): Don't declare.
	* cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
	into...
	(_initialize_cli_cmds): ...here.  Use GDBINIT, not gdbinit.
	* top.c (gdb_init): Don't call init_cli_cmds.
	(gdbinit): Remove.
	* cli/cli-cmds.h (init_cli_cmds): Don't declare.
2019-07-11 10:28:27 -06:00
..
cli-cmds.c Remove init_cli_cmds 2019-07-11 10:28:27 -06:00
cli-cmds.h Remove init_cli_cmds 2019-07-11 10:28:27 -06:00
cli-decode.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
cli-decode.h Don't include gdbarch.h from defs.h 2019-07-10 14:53:53 -06:00
cli-dump.c Don't include gdbarch.h from defs.h 2019-07-10 14:53:53 -06: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 Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
cli-script.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
cli-script.h Don't include gdbarch.h from defs.h 2019-07-10 14:53:53 -06: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 Don't include gdbarch.h from defs.h 2019-07-10 14:53:53 -06: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