Re: [PATCH master+7.12 v2 1/3] Introduce cleanup to restore current_uiout

Pedro Alves
2016-09-14T17:56:59Z

On 09/14/2016 06:45 PM, Simon Marchi wrote:
> Make a globally available cleanup from a pre-existing one in infrun.c.
> This is used in the following patch.
>
> gdb/ChangeLog:
>
> * infrun.c (restore_current_uiout_cleanup): Move to ui-out.c.
> (print_stop_event): Use make_cleanup_restore_current_uiout.
> * 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
> definition.

OK.

Thanks,
Pedro Alves