From: Pedro Alves <palves@redhat.com>
To: Tom Tromey <tom@tromey.com>
Cc: Simon Marchi <simon.marchi@polymtl.ca>, gdb-patches@sourceware.org
Subject: Re: [RFA] Remove make_cleanup_restore_target_terminal
Date: Fri, 22 Sep 2017 15:47:00 -0000 [thread overview]
Message-ID: <8aa86061-a9a4-ba62-4c0e-9608225191b3@redhat.com> (raw)
In-Reply-To: <87vakc6nph.fsf@tromey.com>
On 09/21/2017 05:06 PM, Tom Tromey wrote:
> Simon> Clang gives this warning, which seems valid to me:
>
> Sorry about this.
>
> Pedro> Indeed. The field should be a scoped_restore_tmpl instead of
> Pedro> a scoped_restore, and that mem-initializer above should be
> Pedro> calling the scoped_restore_tmpl ctor instead of make_scoped_restore.
>
> How's the appended?
>
> commit c068483d29873c3bc80c8accc3f50cecae0f33d8
> Author: Tom Tromey <tom@tromey.com>
> Date: Thu Sep 21 09:54:25 2017 -0600
>
> Change type of scoped_input_handler::m_quit_handler
>
> Simon pointed out that scoped_input_handler::m_quit_handler must have
> the correct scoped_restore_tmpl type, to avoid binding to a temporary.
> This patch fixes the problem.
>
> gdb/ChangeLog
> 2017-09-21 Tom Tromey <tom@tromey.com>
>
> * utils.c (class scoped_input_handler) <m_quit_handler>: Change
> type to scoped_restore_tmpl.
> <scoped_input_handler>: Initialize m_quit_handler directly.
Reviewed-by: Pedro Alves <palves@redhat.com>
Thanks,
Pedro Alves
prev parent reply other threads:[~2017-09-22 15:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-20 16:04 Tom Tromey
2017-09-20 16:21 ` Pedro Alves
2017-09-20 22:09 ` Tom Tromey
2017-09-21 13:16 ` Simon Marchi
2017-09-21 13:26 ` Pedro Alves
2017-09-21 16:06 ` Tom Tromey
2017-09-22 15:47 ` Pedro Alves [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8aa86061-a9a4-ba62-4c0e-9608225191b3@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=simon.marchi@polymtl.ca \
--cc=tom@tromey.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox