This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


On 09/15/2016 04:23 AM, Simon Marchi wrote:
> On 14/09/16 01:56 PM, Pedro Alves wrote:
>> 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
> 
> A little addition, I replace the usage of make_cleanup_restore_ui_out in python.c
> by this new make_cleanup_restore_current_uiout, and remove
> make_cleanupt_restore_ui_out.

OK.

Thanks,
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]