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:
Tom Tromey 2019-01-23 18:58:33 +00:00 committed by Pedro Alves
parent 4c41382ac1
commit 694c6bf542
6 changed files with 20 additions and 27 deletions

View file

@ -286,7 +286,6 @@ private:
int m_save_batch_flag;
};
extern struct cleanup *make_bpstat_clear_actions_cleanup (void);
/* Path utilities. */