c++autocompletegdbredhat

gdb does not autocomplete with shell commands


After recently updating gdb from GNU gdb (GDB) Red Hat Enterprise Linux 8.2-20.el8 to GNU gdb (GDB) 16.3, gdb is not performing autocomplete specifically when running a shell command.

e.g.

(gdb) !ls
thisfile.txt
(gdb) !ls this<tab>

tab is not autocompleting the file. This fails for any shell command, but works fine for any gdb command. This used to work on version 8.2. Does anyone have any ideas on how I can bring back autocompletion for shell commands in gdb? The actual shell commands work fine, but I have to manually type out the file.

Edit: I found out that autocomplete works when I don't include any shell commands. E.G. from the example above: (gdb) !this<tab> autocompletes to (gdb) !thisfile.txt. But once I pass in a shell command, autocomplete is disabled.


Solution

  • Thanks to @Andrew, it seems like this is a bug that hopefully will be fixed soon.

    sourceware.org/bugzilla/show_bug.cgi?id=32982