Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Nick Roberts <nickrob@snap.net.nz>
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 05:50:00 -0000	[thread overview]
Message-ID: <18391.28412.642589.598752@kahikatea.snap.net.nz> (raw)


> 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.

I like this change but under what conditions can GDB set the inferior's
controlling terminal?  I've created a pty without a controlling process in
Emacs and specified it for the inferior terminal but, using your patch, I still
get the message:

warning: GDB: Failed to set controlling terminal: Operation not permitted

Do I need to run GDB as root?

-- 
Nick                                           http://www.inet.net.nz/~nickrob


             reply	other threads:[~2008-03-12  5:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-12  5:50 Nick Roberts [this message]
2008-03-12 10:22 ` Andreas Schwab
2008-03-12 11:26   ` Nick Roberts
  -- strict thread matches above, loose matches on Subject: below --
2008-03-10 17:44 Thiago Jung Bauermann
2008-03-12 12:40 ` Daniel Jacobowitz
2008-03-12 14:13   ` Thiago Jung Bauermann

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=18391.28412.642589.598752@kahikatea.snap.net.nz \
    --to=nickrob@snap.net.nz \
    --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