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: RFA: patch to 'help' completion


On Mon, Jun 30, 2008 at 11:04:13AM -0600, Tom Tromey wrote:
> Yesterday I happened to notice that 'help info TAB' does not complete
> on info subcommands.  This seemed like an odd oversight to me, so I
> delved into it and wrote this patch.
> 
> Basically, complete_on_cmdlist only looks at the immediate subcommands
> of the current command element.  In the 'help info TAB' case, this
> amounts to trying to complete "info " -- which yields nothing.
> 
> Since complete_line does almost everything we want, I added an
> argument to it to omit calling individual commands' completion
> functions if we're completing for the help command.
> 
> Built and tested on x86 F8.  New test case included.  Ok?

Looks good to me, thanks.

-- 
Daniel Jacobowitz
CodeSourcery


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