This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] gdb: include help aliases in help command completion
- From: Tom Tromey <tromey at redhat dot com>
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 19 Nov 2012 14:27:50 -0700
- Subject: Re: [PATCH] gdb: include help aliases in help command completion
- References: <1353358451-23819-1-git-send-email-vapier@gentoo.org>
>>>>> "Mike" == Mike Frysinger <vapier@gentoo.org> writes:
Mike> 2012-11-19 Mike Frysinger <vapier@gentoo.org>
Mike> * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
Mike> it when looking at ptr->func.
Mike> * command.h (complete_on_cmdlist): Add a fourth arg.
Mike> * completer.c (complete_line_internal): Add local ignore_help_classes,
Mike> and set it to 1 when reason is not handle_help. Pass this down to
Mike> lookup_cmd_1 and complete_on_cmdlist.
It seems reasonable to me, but could you add a test case?
You can just stick a new one in help.exp; like "complete help user-".
Tom