This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] gdb: include help aliases in help command completion


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]