diff options
author | Tom Tromey <tom@tromey.com> | 2017-09-29 21:49:04 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-10-03 05:33:44 -0600 |
commit | 070365117b5727394e271399c5738a27bf9716d5 (patch) | |
tree | af3df612d0b512560ff052a22a64f59939936315 /gdb/record-full.h | |
parent | 9194f82dc372d5045ae06c617a49a5a9b17c1d24 (diff) | |
download | binutils-gdb-070365117b5727394e271399c5738a27bf9716d5.tar.gz |
Change record_full_gdb_operation_disable_set not to return a cleanup
This changes record_full_gdb_operation_disable_set to return a
scoped_restore rather than a cleanup, and fixes all the users.
ChangeLog
2017-10-03 Tom Tromey <tom@tromey.com>
* record-full.h (record_full_gdb_operation_disable_set): Return
scoped_restore_tmpl<int>.
* infrun.c (adjust_pc_after_break): Update.
(handle_signal_stop): Update.
* record-full.c (record_full_gdb_operation_disable_set): Return
scoped_restore_tmpl<int>.
(record_full_wait_1, record_full_insert_breakpoint)
(record_full_remove_breakpoint, record_full_save)
(record_full_goto_insn): Update.
Diffstat (limited to 'gdb/record-full.h')
-rw-r--r-- | gdb/record-full.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/record-full.h b/gdb/record-full.h index 7d53b635e49..728bf59958b 100644 --- a/gdb/record-full.h +++ b/gdb/record-full.h @@ -29,6 +29,6 @@ extern int record_full_arch_list_add_end (void); /* Returns true if the process record target is open. */ extern int record_full_is_used (void); -extern struct cleanup *record_full_gdb_operation_disable_set (void); +extern scoped_restore_tmpl<int> record_full_gdb_operation_disable_set (); #endif /* RECORD_FULL_H */ |