aboutsummaryrefslogtreecommitdiff
path: root/gdb/command.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-11-20 21:02:36 +0000
committerMike Frysinger <vapier@gentoo.org>2012-11-20 21:02:36 +0000
commitace21957447369d273622e8869f1183549cded3d (patch)
treee1b60584fd3f56030179cad26cfc61c417133efe /gdb/command.h
parentec6632d76b88e151af88bd22fdb310e9dcbb93f5 (diff)
downloadgdb-ace21957447369d273622e8869f1183549cded3d.zip
gdb-ace21957447369d273622e8869f1183549cded3d.tar.gz
gdb-ace21957447369d273622e8869f1183549cded3d.tar.bz2
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<tab> and get back: (gdb) help user-defined Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'gdb/command.h')
-rw-r--r--gdb/command.h2
1 files changed, 1 insertions, 1 deletions
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 *);