Change setup_breakpoint_reporting to return a scoped_restore
authorTom Tromey <tom@tromey.com>
Sun, 13 Aug 2017 16:55:28 +0000 (10:55 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 11 Sep 2017 22:15:07 +0000 (16:15 -0600)
commit00f675ff65ff6f78712a46e9699856e935d86d86
treee8c8d050598c69c8c47a8b451e18260f7a1704ae
parentcb791d59489576280e416262eb61ab59765a0baf
Change setup_breakpoint_reporting to return a scoped_restore

This changes setup_breakpoint_reporting to return a scoped_restore,
allowing for some cleanup removal.

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

* mi/mi-cmd-catch.c (mi_cmd_catch_assert)
(mi_cmd_catch_exception, mi_catch_load_unload): Update.
* mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
scoped_restore.
(mi_cmd_break_insert_1): Update.
* mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
scoped_restore.
gdb/ChangeLog
gdb/mi/mi-cmd-break.c
gdb/mi/mi-cmd-break.h
gdb/mi/mi-cmd-catch.c