Obvious function doc and formatting

gdb/ChangeLog:

	* cli/cli-decode.c (help_cmd_list): Fix function doc and remove
	trailing spaces.
This commit is contained in:
Simon Marchi
2016-04-04 16:46:36 -04:00
parent 7beb7f68a0
commit 2aa08bd1f9
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2016-04-04 Simon Marchi <simon.marchi@ericsson.com>
* cli/cli-decode.c (help_cmd_list): Fix function doc and remove
trailing spaces.
2016-04-01 Artemiy Volkov <artemiyv@acm.org> 2016-04-01 Artemiy Volkov <artemiyv@acm.org>
PR gdb/19820 PR gdb/19820

View File

@ -1175,7 +1175,7 @@ print_help_for_command (struct cmd_list_element *c, const char *prefix,
* all sublists of LIST. * all sublists of LIST.
* PREFIX is the prefix to print before each command name. * PREFIX is the prefix to print before each command name.
* STREAM is the stream upon which the output should be written. * STREAM is the stream upon which the output should be written.
* CLASS should be: * THECLASS should be:
* A non-negative class number to list only commands in that * A non-negative class number to list only commands in that
* class. * class.
* ALL_COMMANDS to list all commands in list. * ALL_COMMANDS to list all commands in list.
@ -1192,7 +1192,7 @@ help_cmd_list (struct cmd_list_element *list, enum command_class theclass,
struct cmd_list_element *c; struct cmd_list_element *c;
for (c = list; c; c = c->next) for (c = list; c; c = c->next)
{ {
if (c->abbrev_flag == 0 if (c->abbrev_flag == 0
&& (theclass == all_commands && (theclass == all_commands
|| (theclass == all_classes && c->func == NULL) || (theclass == all_classes && c->func == NULL)