33#
if PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION >= 4
49 catch (
const gdb_exception_forced_quit &e)
53 catch (
const gdb_exception &except)
56 if (except.reason == RETURN_QUIT)
63 PyEval_RestoreThread (_PyOS_ReadlineTState);
102 if (PyRun_SimpleString (
"\
105class GdbRemoveReadlineFinder:\n\
106 def find_module(self, fullname, path=None):\n\
107 if fullname == 'readline' and path is None:\n\
111 def load_module(self, fullname):\n\
112 raise ImportError('readline module disabled under GDB')\n\
114sys.meta_path.append(GdbRemoveReadlineFinder())\n\
const char * command_line_input(std::string &cmd_line_buffer, const char *, const char *)
static int CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION gdbpy_initialize_gdb_readline(void)
static char * gdbpy_readline_wrapper(FILE *sys_stdin, FILE *sys_stdout, char *prompt)
void gdbpy_convert_exception(const struct gdb_exception &exception)
#define CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
#define GDBPY_INITIALIZE_FILE(INIT,...)
void quit_force(int *exit_arg, int from_tty)