From 8c28dfed4e2b27528821f07873d993b2a7c9f883 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Sun, 9 Feb 2025 18:03:54 +0100 Subject: [PATCH] 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. Close #325, #326 --- .gdbinit | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gdbinit b/.gdbinit index d308884..3af237b 100644 --- a/.gdbinit +++ b/.gdbinit @@ -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