From b95de2b7aeb30081345954cb15970a582b49a866 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 29 Sep 2017 22:07:37 -0600 Subject: Remove set_batch_flag_and_make_cleanup_restore_page_info This removes set_batch_flag_and_make_cleanup_restore_page_info and make_cleanup_restore_page_info in favor of a new RAII class. This then allows for the removal of make_cleanup_restore_uinteger and make_cleanup_restore_integer ChangeLog 2017-10-03 Tom Tromey * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update. * top.c (execute_command_to_string): Update. * utils.c (make_cleanup_restore_page_info): Remove. (do_restore_page_info_cleanup): Remove. (set_batch_flag_and_restore_page_info): New. (make_cleanup_restore_page_info): Remove. (set_batch_flag_and_make_cleanup_restore_page_info): Remove. (~set_batch_flag_and_restore_page_info): New (make_cleanup_restore_uinteger): Remove. (make_cleanup_restore_integer): Remove. (struct restore_integer_closure): Remove. (restore_integer): Remove. * utils.h (struct set_batch_flag_and_restore_page_info): New class. (set_batch_flag_and_make_cleanup_restore_page_info): Remove. (make_cleanup_restore_page_info): Remove. (make_cleanup_restore_uinteger) Remove. (make_cleanup_restore_integer) Remove. --- gdb/ChangeLog | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'gdb/ChangeLog') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2415a07..57fd038 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,27 @@ 2017-10-03 Tom Tromey + * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update. + * top.c (execute_command_to_string): Update. + * utils.c (make_cleanup_restore_page_info): Remove. + (do_restore_page_info_cleanup): Remove. + (set_batch_flag_and_restore_page_info): + New. + (make_cleanup_restore_page_info): Remove. + (set_batch_flag_and_make_cleanup_restore_page_info): Remove. + (~set_batch_flag_and_restore_page_info): New + (make_cleanup_restore_uinteger): Remove. + (make_cleanup_restore_integer): Remove. + (struct restore_integer_closure): Remove. + (restore_integer): Remove. + * utils.h (struct set_batch_flag_and_restore_page_info): New + class. + (set_batch_flag_and_make_cleanup_restore_page_info): Remove. + (make_cleanup_restore_page_info): Remove. + (make_cleanup_restore_uinteger) Remove. + (make_cleanup_restore_integer) Remove. + +2017-10-03 Tom Tromey + * record-full.h (record_full_gdb_operation_disable_set): Return scoped_restore_tmpl. * infrun.c (adjust_pc_after_break): Update. -- cgit v1.1