Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Tom Tromey <tom@tromey.com>, gdb-patches@sourceware.org
Subject: Re: [RFA] Remove make_cleanup_restore_target_terminal
Date: Wed, 20 Sep 2017 16:21:00 -0000	[thread overview]
Message-ID: <313985bd-111f-cea6-7b13-96217ee450cc@redhat.com> (raw)
In-Reply-To: <20170920160404.20543-1-tom@tromey.com>

On 09/20/2017 05:04 PM, Tom Tromey wrote:
> This removes make_cleanup_restore_target_terminal and generally
> C++-ifies target terminal handling.  It changes all target_terminal_*
> functions to be static members of a new target_terminal class and
> changes the cleanup to be a scoped_* class.
> make_cleanup_override_quit_handler is also removed in favor of simply
> using scoped_restore.
> 
> Note that there are some files in this patch that I could not compile.
> Considering that some of the rewrites were automated, and that none of
> these files involed cleanups, I feel that this is relatively safe.
> 
> Regression tested by the buildbot.

Looks fine to me.

> +
> +  static terminal_state terminal_state;//  = terminal_is_ours;
> +};
>

Stale comment?

Thanks,
Pedro Alves


  reply	other threads:[~2017-09-20 16:21 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 [this message]
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

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=313985bd-111f-cea6-7b13-96217ee450cc@redhat.com \
    --to=palves@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --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