From ace21957447369d273622e8869f1183549cded3d Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 20 Nov 2012 21:02:36 +0000 Subject: gdb: include help aliases in help command completion There are a bunch of aliases that get used with help, but the current command completion logic does not include those when doing completions. Since the framework is already mostly in place, extend complete_on_cmdlist slightly to pass down the ignore_help_classes flag like is done with the existing lookup command logic. Now you can do: (gdb) help use and get back: (gdb) help user-defined Signed-off-by: Mike Frysinger --- gdb/command.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/command.h') diff --git a/gdb/command.h b/gdb/command.h index b88bd8b..8eb86ba 100644 --- a/gdb/command.h +++ b/gdb/command.h @@ -216,7 +216,7 @@ extern struct cmd_list_element *add_info (char *, extern struct cmd_list_element *add_info_alias (char *, char *, int); extern VEC (char_ptr) *complete_on_cmdlist (struct cmd_list_element *, - char *, char *); + char *, char *, int); extern VEC (char_ptr) *complete_on_enum (const char *const *enumlist, char *, char *); -- cgit v1.1