gdb: include help aliases in help command completion
authorMike Frysinger <vapier@gentoo.org>
Tue, 20 Nov 2012 21:02:36 +0000 (21:02 +0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 20 Nov 2012 21:02:36 +0000 (21:02 +0000)
commitace21957447369d273622e8869f1183549cded3d
treee1b60584fd3f56030179cad26cfc61c417133efe
parentec6632d76b88e151af88bd22fdb310e9dcbb93f5
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>
gdb/ChangeLog
gdb/cli/cli-decode.c
gdb/command.h
gdb/completer.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/completion.exp