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 621e201..b00b70b 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -654,7 +654,8 @@ execute_gdb_command (PyObject *self, PyObject *args, PyObject *kw) make_cleanup_restore_integer (¤t_ui->async); current_ui->async = 0; - make_cleanup_restore_ui_out (¤t_uiout); + make_cleanup_restore_current_uiout (); + /* Use the console interpreter uiout to have the same print format for console or MI. */ interp = interp_lookup (current_ui, "console"); |