From: Daniel Jacobowitz <drow@false.org>
To: Thiago Jung Bauermann <bauerman@br.ibm.com>
Cc: gdb-patches <gdb-patches@sourceware.org>
Subject: Re: [RFA] Fix GDB's handling of the inferior controlling terminal.
Date: Wed, 12 Mar 2008 12:40:00 -0000 [thread overview]
Message-ID: <20080312123958.GA9349@caradoc.them.org> (raw)
In-Reply-To: <1205170916.18153.202.camel@localhost.localdomain>
On Mon, Mar 10, 2008 at 02:41:56PM -0300, Thiago Jung Bauermann wrote:
> Hi,
>
> With the current CVS version, if the user specifies a different terminal
> for the inferior to run on, GDB doesn't set it as the inferior's
> controlling terminal.
>
> This leads to some problems. For instance, the inferior will not
> get SIGINT sent to the terminal. Also, if the inferior is GDB itself,
> the following message is shown in the inferior GDB's debugging session:
>
> [tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device]
>
> The attached patch makes GDB set the inferior's controlling terminal,
> fixing both of the symptoms above. If the user specifies a different
> inferior terminal, GDB will now create a new session right after forking
> to run the inferior, and use the TIOCSCTTY ioctl to set the controlling
> terminal.
>
> Ran testsuite, no regressions found. Is this ok?
This is OK, thanks.
> + ret = setsid();
Space there before paren.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2008-03-12 12:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-10 17:44 Thiago Jung Bauermann
2008-03-12 12:40 ` Daniel Jacobowitz [this message]
2008-03-12 14:13 ` Thiago Jung Bauermann
2008-03-12 5:50 Nick Roberts
2008-03-12 10:22 ` Andreas Schwab
2008-03-12 11:26 ` Nick Roberts
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=20080312123958.GA9349@caradoc.them.org \
--to=drow@false.org \
--cc=bauerman@br.ibm.com \
--cc=gdb-patches@sourceware.org \
/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