32 #
if PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION >= 4
56 PyEval_RestoreThread (_PyOS_ReadlineTState);
75 q = PyMem_Malloc (n + 2);
96 if (PyRun_SimpleString (
"\
99 class GdbRemoveReadlineFinder:\n\
100 def find_module(self, fullname, path=None):\n\
101 if fullname == 'readline' and path is None:\n\
105 def load_module(self, fullname):\n\
106 raise ImportError('readline module disabled under GDB')\n\
108 sys.meta_path.append(GdbRemoveReadlineFinder())\n\
char * command_line_input(const char *, int, char *)
#define CATCH(EXCEPTION, MASK)
void gdbpy_convert_exception(struct gdb_exception exception)
static char * gdbpy_readline_wrapper(FILE *sys_stdin, FILE *sys_stdout, char *prompt)
void gdbpy_initialize_gdb_readline(void)