/* Readline support for Python.
- Copyright (C) 2012-2019 Free Software Foundation, Inc.
+ Copyright (C) 2012-2020 Free Software Foundation, Inc.
This file is part of GDB.
#endif
{
int n;
- char *p = NULL, *q;
+ const char *p = NULL;
+ char *q;
try
{
p = command_line_input (prompt, "python");
}
/* Handle errors by raising Python exceptions. */
- catch (const gdb_exception_RETURN_MASK_ALL &except)
+ catch (const gdb_exception &except)
{
/* Detect user interrupt (Ctrl-C). */
if (except.reason == RETURN_QUIT)