diff options
author | Tom Tromey <tom@tromey.com> | 2016-09-24 21:53:54 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2016-10-21 14:17:36 -0600 |
commit | 67ad9399e2a69757f06886ee61ce7f36d15e768a (patch) | |
tree | 2892071556a11ba6021980c45359b3a97965dee3 /gdb/python/python.c | |
parent | d1e4a624699fd734b3b6e87fb79a4da71c182dfd (diff) | |
download | gdb-67ad9399e2a69757f06886ee61ce7f36d15e768a.zip gdb-67ad9399e2a69757f06886ee61ce7f36d15e768a.tar.gz gdb-67ad9399e2a69757f06886ee61ce7f36d15e768a.tar.bz2 |
Remove make_cleanup_restore_current_uiout
This removes make_cleanup_restore_current_uiout in favor of an
RAII-based class.
2016-10-21 Tom Tromey <tom@tromey.com>
* stack.c (print_stack_frame_to_uiout): Use scoped_restore.
* ui-out.c (make_cleanup_restore_current_uiout)
(restore_current_uiout_cleanup): Remove.
* infrun.c (print_stop_event): Use scoped_restore.
* ui-out.h (make_cleanup_restore_current_uiout): Don't declare.
Diffstat (limited to 'gdb/python/python.c')
-rw-r--r-- | gdb/python/python.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/python.c b/gdb/python/python.c index e478ec9..d6bd6bf 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -648,7 +648,7 @@ execute_gdb_command (PyObject *self, PyObject *args, PyObject *kw) scoped_restore save_async = make_scoped_restore (¤t_ui->async, 0); - make_cleanup_restore_current_uiout (); + scoped_restore save_uiout = make_scoped_restore (¤t_uiout); /* Use the console interpreter uiout to have the same print format for console or MI. */ |