This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH master+7.12 v2 1/3] Introduce cleanup to restore current_uiout
- From: Simon Marchi <simon dot marchi at ericsson dot com>
- To: Tom Tromey <tom at tromey dot com>
- Cc: <gdb-patches at sourceware dot org>
- Date: Wed, 14 Sep 2016 14:18:07 -0400
- Subject: Re: [PATCH master+7.12 v2 1/3] Introduce cleanup to restore current_uiout
- Authentication-results: sourceware.org; auth=none
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=simon dot marchi at ericsson dot com;
- References: <20160914174548.5873-1-simon.marchi@ericsson.com> <20160914174548.5873-2-simon.marchi@ericsson.com> <878tuu4aje.fsf@tromey.com>
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
On 16-09-14 02:10 PM, Tom Tromey wrote:
>>>>>> "Simon" == Simon Marchi <simon.marchi@ericsson.com> writes:
>
> Simon> - old_chain = make_cleanup (restore_current_uiout_cleanup, current_uiout);
> Simon> + old_chain = make_cleanup_restore_current_uiout ();
>
> There's also already make_cleanup_restore_ui_out.
> You could just use "make_cleanup_restore_ui_out (¤t_uiout)" instead.
>
> Tom
Ah good point, I'll probably do that.
Thanks!