This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: completion regression? [PATCH]
- From: Daniel Jacobowitz <drow at false dot org>
- To: Nick Roberts <nickrob at snap dot net dot nz>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Wed, 11 Oct 2006 09:17:55 -0400
- Subject: Re: completion regression? [PATCH]
- References: <17705.28835.758720.533078@kahikatea.snap.net.nz> <20061008220814.GA23132@nevyn.them.org> <17708.6256.497894.641872@kahikatea.snap.net.nz> <17708.52258.488888.118911@kahikatea.snap.net.nz>
On Wed, Oct 11, 2006 at 11:49:06PM +1300, Nick Roberts wrote:
> > Could the "complete" command also add trailing slashes as with completion
> > from the command line? i.e
> >
> > (top-gdb) complete cd test
> > cd testrun.log
> > cd testrun.sum
> > cd testsuite/
> > (gdb)
>
> Like below?
Nope, sorry. With this patch applied:
(gdb) file .<tab><tab>
..// .//
Readline defines the interface for these functions, and that says we
shouldn't include the slash. I think this happens in
readline/complete.c:print_filename. Maybe there's somewhere else in
GDB you can do this without breaking CLI tab completion?
--
Daniel Jacobowitz
CodeSourcery