#305439 gdb: tab complete does not escape spaces

Package:
gdb
Source:
gdb
Description:
GNU Debugger
Submitter:
Matt Kraai
Date:
2025-07-31 18:05:02 UTC
Severity:
normal
Tags:
#305439#5
Date:
2005-04-19 23:31:59 UTC
From:
To:
I ran gdb on totem:

 gdb totem

Once it had started, I tried to run it on
"How software patents work.mov" by typing

 r How<TAB>

This was completed to

 r How software patents work.mov

This caused totem to complain because "How" did not exist.

I think that, when gdb performs tab completion, it should escape the
spaces by preceding them with backslashes.

#305439#10
Date:
2005-04-20 01:57:11 UTC
From:
To:
One of many, many things wrong with GDB's tab completion.  The biggest
problem with cleaning this up is an interface missing in readline 4.x;
I got the necessary bits added to 5.x, but upstream hasn't upgraded
yet.

So, thanks for the report, but it may be some time before I can fix it.

#305439#17
Date:
2025-07-27 22:53:47 UTC
From:
To:
Control: severity -1 wishlist
Control: forwarded -1 https://sourceware.org/bugzilla/show_bug.cgi?id=26180

This is still valid on GDB 16.3 (currently in Trixie), but according to:

https://sourceware.org/bugzilla/show_bug.cgi?id=26180

the bugu should have been fixed.  I'll investigate more later.  For now,
let me downgrade the severity.