forked from Imagelibrary/binutils-gdb
Remove make_bpstat_clear_actions_cleanup
This removes make_bpstat_clear_actions_cleanup, replacing it with uses of scope_exit. gdb/ChangeLog: 2019-01-23 Tom Tromey <tom@tromey.com> Andrew Burgess <andrew.burgess@embecosm.com> Pedro Alves <palves@redhat.com> * infrun.c (fetch_inferior_event): Use scope_exit. * utils.h (make_bpstat_clear_actions_cleanup): Don't declare. * top.c (execute_command): Use scope_exit. * breakpoint.c (bpstat_do_actions): Use scope_exit. * utils.c (do_bpstat_clear_actions_cleanup) (make_bpstat_clear_actions_cleanup): Remove.
This commit is contained in:
@@ -4468,7 +4468,7 @@ get_bpstat_thread ()
|
||||
void
|
||||
bpstat_do_actions (void)
|
||||
{
|
||||
struct cleanup *cleanup_if_error = make_bpstat_clear_actions_cleanup ();
|
||||
auto cleanup_if_error = make_scope_exit (bpstat_clear_actions);
|
||||
thread_info *tp;
|
||||
|
||||
/* Do any commands attached to breakpoint we are stopped at. */
|
||||
@@ -4482,7 +4482,7 @@ bpstat_do_actions (void)
|
||||
break;
|
||||
}
|
||||
|
||||
discard_cleanups (cleanup_if_error);
|
||||
cleanup_if_error.release ();
|
||||
}
|
||||
|
||||
/* Print out the (old or new) value associated with a watchpoint. */
|
||||
|
||||
Reference in New Issue
Block a user