Use a scoped_restore for command_nest_depth
authorTom Tromey <tom@tromey.com>
Mon, 1 May 2017 03:15:58 +0000 (21:15 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 3 Aug 2017 13:59:05 +0000 (07:59 -0600)
commitb51b225eb9b03b627967108ee3de38ada5de219d
tree561756a2e1e30a326c9b5653522393b3e279d3b3
parentac991630ca57ba6a00d0d1358786164248d140fc
Use a scoped_restore for command_nest_depth

This changes a couple of places to use a scoped_restore when
manipulating command_nest_depth.

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

* cli/cli-script.c (execute_user_command)
(execute_control_command): Use scoped_restore.
gdb/ChangeLog
gdb/cli/cli-script.c