Remove make_cleanup_ui_out_redirect_pop
authorTom Tromey <tom@tromey.com>
Sun, 13 Aug 2017 16:47:32 +0000 (10:47 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 9 Sep 2017 19:46:08 +0000 (13:46 -0600)
commitca5909c7de7353d8005bf8fdcc020b8f14cc1603
tree7f6a92c8c64d4154b16b8a30d6bd7fdde6fe19f3
parente6a2252ac3e3dc748df33b38ac66cd78c80be5ad
Remove make_cleanup_ui_out_redirect_pop

This patch introduces ui_out_redirect_pop.  All uses of
make_cleanup_ui_out_redirect_pop are replaced with this new class.

ChangeLog
2017-09-09  Tom Tromey  <tom@tromey.com>

* mi/mi-interp.c (mi_user_selected_context_changed): Use
ui_out_redirect_pop.
* guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
ui_out_redirect_pop.
* utils.c (do_ui_out_redirect_pop)
(make_cleanup_ui_out_redirect_pop): Remove.
* top.c (execute_command_to_string): Use ui_out_redirect_pop.
* utils.h (make_cleanup_ui_out_redirect_pop): Remove.
* ui-out.h (ui_out_redirect_pop): New class.
gdb/ChangeLog
gdb/guile/scm-ports.c
gdb/mi/mi-interp.c
gdb/top.c
gdb/ui-out.h
gdb/utils.c
gdb/utils.h