From: Pedro Alves <palves@redhat.com>
To: Yao Qi <qiyaoltc@gmail.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFC 2/2] Change SIGINT handler for extension languages only when target terminal is ours
Date: Thu, 07 Jan 2016 17:24:00 -0000 [thread overview]
Message-ID: <568E9F3B.5020507@redhat.com> (raw)
In-Reply-To: <86h9isx92q.fsf@gmail.com>
On 01/05/2016 04:52 PM, Yao Qi wrote:
> Pedro Alves <palves@redhat.com> writes:
>
>> The reason this doesn't trigger with native debugging is that
>> in that case, gdb is sharing the terminal with gdb, and with job
>
> I think you meant "gdb is sharing the terminal with the inferior".
Indeed.
>>> + if (!target_terminal_is_inferior ())
>>
>> I think this should check for terminal_is_ours instead. We also
>> don't want this with terminal_ours_for_output. In that case, _input_
>> is still sent to the inferior.
>
> OK, target_terminal_is_ours is added and is used here. Patch is updated
> as below,
This LGTM.
> Your patch looks good to me.
I'll push it after yours goes in.
Thanks,
Pedro Alves
next prev parent reply other threads:[~2016-01-07 17:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-21 11:30 [PATCH 0/2] Fix timeout in random-signal.exp Yao Qi
2015-12-21 11:30 ` [RFC 1/2] Check input interrupt first when reading packet Yao Qi
2016-01-04 17:40 ` Pedro Alves
2016-01-05 16:43 ` Yao Qi
2016-01-07 17:26 ` Pedro Alves
2016-01-08 11:07 ` Yao Qi
2015-12-21 11:30 ` [RFC 2/2] Change SIGINT handler for extension languages only when target terminal is ours Yao Qi
2016-01-04 16:12 ` Pedro Alves
2016-01-05 16:52 ` Yao Qi
2016-01-07 17:24 ` Pedro Alves [this message]
2016-01-08 11:08 ` Yao Qi
2016-01-12 13:11 ` 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=568E9F3B.5020507@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=qiyaoltc@gmail.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).