From 2aa08bd1f93e62c25a51a1055d611afb8e34497f Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 4 Apr 2016 16:46:36 -0400 Subject: [PATCH] Obvious function doc and formatting gdb/ChangeLog: * cli/cli-decode.c (help_cmd_list): Fix function doc and remove trailing spaces. --- gdb/ChangeLog | 5 +++++ gdb/cli/cli-decode.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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) -- 2.30.2