Remove make_cleanup_restore_current_uiout
authorTom Tromey <tom@tromey.com>
Sun, 25 Sep 2016 03:53:54 +0000 (21:53 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 21 Oct 2016 20:17:36 +0000 (14:17 -0600)
commit67ad9399e2a69757f06886ee61ce7f36d15e768a
tree2892071556a11ba6021980c45359b3a97965dee3
parentd1e4a624699fd734b3b6e87fb79a4da71c182dfd
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.
gdb/ChangeLog
gdb/infrun.c
gdb/python/python.c
gdb/stack.c
gdb/ui-out.c
gdb/ui-out.h