completion regression? [PATCH]

Daniel Jacobowitz drow@false.org
Wed Oct 11 13:18:00 GMT 2006


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



More information about the Gdb-patches mailing list