forked from Imagelibrary/binutils-gdb
Introduce cleanup to restore current_uiout
Make a globally available cleanup from a pre-existing one in infrun.c. This is used in a following patch. gdb/ChangeLog: * infrun.c (restore_current_uiout_cleanup): Move to ui-out.c. (print_stop_event): Use make_cleanup_restore_current_uiout. * python/python.c (execute_gdb_command): Likewise. * ui-out.c (restore_current_uiout_cleanup): Move from infrun.c. (make_cleanup_restore_current_uiout): New function definition. * ui-out.h (make_cleanup_restore_current_uiout): New function declaration. * utils.c (do_restore_ui_out): Remove. (make_cleanup_restore_ui_out): Remove. * utils.h (make_cleanup_restore_ui_out): Remove.
This commit is contained in:
committed by
Simon Marchi
parent
325fac504a
commit
cd94f6d535
@@ -93,9 +93,6 @@ extern struct cleanup *make_cleanup_restore_uinteger (unsigned int *variable);
|
||||
struct target_ops;
|
||||
extern struct cleanup *make_cleanup_unpush_target (struct target_ops *ops);
|
||||
|
||||
|
||||
extern struct cleanup *
|
||||
make_cleanup_restore_ui_out (struct ui_out **variable);
|
||||
extern struct cleanup *
|
||||
make_cleanup_restore_ui_file (struct ui_file **variable);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user