This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 7/8] Use unique_xmalloc_ptr in execute_gdb_command
- From: Pedro Alves <palves at redhat dot com>
- To: Tom Tromey <tom at tromey dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 10 Jan 2017 17:59:34 +0000
- Subject: Re: [RFA 7/8] Use unique_xmalloc_ptr in execute_gdb_command
- Authentication-results: sourceware.org; auth=none
- References: <1480395946-10924-1-git-send-email-tom@tromey.com> <1480395946-10924-8-git-send-email-tom@tromey.com> <878ts2yi5m.fsf@tromey.com> <87inqletsw.fsf@tromey.com> <7f11b7bb-bebb-1cd3-1e92-266638272443@redhat.com> <87d1gmwk2j.fsf@tromey.com> <87h95u5sat.fsf@tromey.com>
On 12/23/2016 08:00 PM, Tom Tromey wrote:
> Pedro> In some other local patch that I hadn't posted, I handled a similar
> Pedro> situation of save/restoring some global that we don't want to expose
> Pedro> by making the "make_cleanup_..." function return a scoped_restore, which
> Pedro> avoids having to create a new class. It seems a bit simpler that
> Pedro> creating a class to me, and maybe a tiny bit more efficient code-space
> Pedro> wise (rtti?) Did you consider this approach?
>
> Tom> I didn't, but I like it, so I'll make this change.
>
> Here's the new version of this patch.
OK.
Thanks,
Pedro Alves