Replace tui_restore_gdbout with scoped_restore
authorTom Tromey <tom@tromey.com>
Sat, 29 Apr 2017 04:59:24 +0000 (22:59 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 3 Aug 2017 13:59:01 +0000 (07:59 -0600)
commit31b68d4ad72ebb153e48e16c8d9edf3676a8af38
treebb52dcb5e81a91b9fe15e17c8b421a453949ac03
parent2ec845e758762030f2333c21fa532fc57fe3762f
Replace tui_restore_gdbout with scoped_restore

This patch replaces tui_restore_gdbout (a cleaup function) with a use
of scoped_restore.  This one is broken out into its own patch because
it might slightly change the behavior of gdb: it saves and restores
pagination_enabled, whereas the tui_restore_gdbout unconditionally set
pagination_enabled to 1; and I think this warrants closer review.

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

* tui/tui-regs.c (tui_restore_gdbout): Remove.
(tui_register_format): Use scoped_restore.
gdb/ChangeLog
gdb/tui/tui-regs.c
This page took 0.034794 seconds and 4 git commands to generate.