Replace clear_hook_in_cleanup with scoped_restore_hook_in
authorTom Tromey <tom@tromey.com>
Sun, 13 Aug 2017 20:44:08 +0000 (14:44 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 11 Sep 2017 22:15:09 +0000 (16:15 -0600)
commita9921622de0a7332a333c5206ce8cd632803df97
treed6fd47ffb7622621a9d7ec74568d931cc0199068
parentbe0d7abb5e3b0be4cb928845e70a9134f1b19700
Replace clear_hook_in_cleanup with scoped_restore_hook_in

This removes clear_hook_in_cleanup in favor of a scoped_restore-like
class.  scoped_restore itself can't be used because hook_in is a
bitfield.

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

* cli/cli-script.c (class scoped_restore_hook_in): New.
(clear_hook_in_cleanup): Remove.
(execute_cmd_pre_hook, execute_cmd_post_hook): Use
scoped_restore_hook_in.
gdb/ChangeLog
gdb/cli/cli-script.c
This page took 0.027549 seconds and 4 git commands to generate.