From 00f675ff65ff6f78712a46e9699856e935d86d86 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 13 Aug 2017 10:55:28 -0600 Subject: 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 * 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/mi/mi-cmd-break.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdb/mi/mi-cmd-break.h') diff --git a/gdb/mi/mi-cmd-break.h b/gdb/mi/mi-cmd-break.h index 6fb30c8..2394074 100644 --- a/gdb/mi/mi-cmd-break.h +++ b/gdb/mi/mi-cmd-break.h @@ -21,10 +21,11 @@ #ifndef MI_CMD_BREAK_H #define MI_CMD_BREAK_H +#include "common/scoped_restore.h" /* Setup the reporting of the insertion of a new breakpoint or catchpoint. */ -struct cleanup *setup_breakpoint_reporting (void); +scoped_restore_tmpl setup_breakpoint_reporting (void); #endif -- cgit v1.1