2

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.

11
  • Have you tried reading the source code changes between the two versions? That ought to provide a clue. Commented May 19 at 15:34
  • 2
    I haven't tried that, but I think that would be something like finding a needle in a haystack, especially because the two versions are vastly far apart. I'm hoping for a simpler solution. Commented May 19 at 15:37
  • Works for me. Have you tried to hit TAB twice? Commented May 19 at 17:16
  • 1
    Looks like it's still working with gdb-15.2, so seems like a recent regression. You might want to create a bug report for this. Commented May 19 at 18:08
  • 4
    @JohnDemetros It's not you. See: sourceware.org/bugzilla/show_bug.cgi?id=32982 Commented May 19 at 21:10

1 Answer 1

1

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

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.