Skip to content

Commit 616ed51

Browse files
committed
Fix GDB tab completion issue
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. Fixes #325 and closes #326 by providing a better solution.
1 parent 49c8dad commit 616ed51

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.gdbinit

+5
Original file line numberDiff line numberDiff line change
@@ -2374,6 +2374,11 @@ set python print-stack full
23742374

23752375
python Dashboard.start()
23762376

2377+
# Fixes ------------------------------------------------------------------------
2378+
2379+
# workaround for the GDB readline issue, see #325
2380+
python import sys; sys.modules['readline'] = None
2381+
23772382
# File variables ---------------------------------------------------------------
23782383

23792384
# vim: filetype=python

0 commit comments

Comments
 (0)