From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7090 invoked by alias); 12 Mar 2008 05:50:27 -0000 Received: (qmail 7082 invoked by uid 22791); 12 Mar 2008 05:50:27 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 12 Mar 2008 05:49:58 +0000 Received: from kahikatea.snap.net.nz (95.30.255.123.static.snap.net.nz [123.255.30.95]) by viper.snap.net.nz (Postfix) with ESMTP id 0B6ED3DA390; Wed, 12 Mar 2008 18:49:55 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 00D318FC6D; Wed, 12 Mar 2008 18:49:49 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18391.28412.642589.598752@kahikatea.snap.net.nz> Date: Wed, 12 Mar 2008 05:50:00 -0000 To: Thiago Jung Bauermann Cc: gdb-patches Subject: Re: [RFA] Fix GDB's handling of the inferior controlling terminal X-Mailer: VM 7.19 under Emacs 23.0.60.36 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-03/txt/msg00122.txt.bz2 > 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