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: completion regression? [PATCH]


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


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