diff options
Diffstat (limited to 'gdb/python/python.c')
-rw-r--r-- | gdb/python/python.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/python/python.c b/gdb/python/python.c index 8a96828..c177efe 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -318,6 +318,7 @@ eval_python_command (const char *command) static void python_interactive_command (char *arg, int from_tty) { + struct ui *ui = current_ui; struct cleanup *cleanup; int err; @@ -341,7 +342,7 @@ python_interactive_command (char *arg, int from_tty) } else { - err = PyRun_InteractiveLoop (instream, "<stdin>"); + err = PyRun_InteractiveLoop (ui->instream, "<stdin>"); dont_repeat (); } |