Skip to content

Commit

Permalink
Fix GDB tab completion issue
Browse files Browse the repository at this point in the history
So it seems that importing readline causes issue with the GDB prompt, in fact
GDB already tries (failing) to avoid that. The issue manifests when debugging a
program with the source code available, e.g., C, and IPython is available in the
system.

Close #325, #326
  • Loading branch information
cyrus-and committed Feb 9, 2025
1 parent 49c8dad commit 8c28dfe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gdbinit
Original file line number Diff line number Diff line change
Expand Up @@ -2374,6 +2374,11 @@ set python print-stack full

python Dashboard.start()

# Fixes ------------------------------------------------------------------------

# workaround for the GDB readline issue, see #325
python import sys; sys.modules['readline'] = None

# File variables ---------------------------------------------------------------

# vim: filetype=python
Expand Down

0 comments on commit 8c28dfe

Please sign in to comment.