From: Simon Marchi Date: Mon, 4 Apr 2016 20:46:36 +0000 (-0400) Subject: Obvious function doc and formatting X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2aa08bd1f93e62c25a51a1055d611afb8e34497f;p=binutils-gdb.git Obvious function doc and formatting gdb/ChangeLog: * cli/cli-decode.c (help_cmd_list): Fix function doc and remove trailing spaces. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3f40c3133ce..fc9448d5115 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2016-04-04 Simon Marchi + + * cli/cli-decode.c (help_cmd_list): Fix function doc and remove + trailing spaces. + 2016-04-01 Artemiy Volkov PR gdb/19820 diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c index 04ed6ab8e79..8a8abdaf06a 100644 --- a/gdb/cli/cli-decode.c +++ b/gdb/cli/cli-decode.c @@ -1175,7 +1175,7 @@ print_help_for_command (struct cmd_list_element *c, const char *prefix, * all sublists of LIST. * PREFIX is the prefix to print before each command name. * 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 * class. * 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; for (c = list; c; c = c->next) - { + { if (c->abbrev_flag == 0 && (theclass == all_commands || (theclass == all_classes && c->func == NULL)