From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: Re: Opening a pty without a process Date: Tue, 27 Nov 2007 19:09:56 +1300 Message-ID: <18251.46260.730816.697476@kahikatea.snap.net.nz> References: <18182.41657.249969.116596@kahikatea.snap.net.nz> <18251.11333.382312.936571@kahikatea.snap.net.nz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1196143836 22922 80.91.229.12 (27 Nov 2007 06:10:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Nov 2007 06:10:36 +0000 (UTC) Cc: emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 27 07:10:43 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Iwteb-0005mM-VT for ged-emacs-devel@m.gmane.org; Tue, 27 Nov 2007 07:10:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IwteM-0005UE-O6 for ged-emacs-devel@m.gmane.org; Tue, 27 Nov 2007 01:10:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IwteG-0005Rn-2P for emacs-devel@gnu.org; Tue, 27 Nov 2007 01:10:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IwteE-0005QX-Nk for emacs-devel@gnu.org; Tue, 27 Nov 2007 01:10:18 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IwteE-0005QN-ET for emacs-devel@gnu.org; Tue, 27 Nov 2007 01:10:18 -0500 Original-Received: from viper.snap.net.nz ([202.37.101.8]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iwte9-00082g-Cj; Tue, 27 Nov 2007 01:10:13 -0500 Original-Received: from kahikatea.snap.net.nz (183.63.255.123.dynamic.snap.net.nz [123.255.63.183]) by viper.snap.net.nz (Postfix) with ESMTP id BE9113DA116; Tue, 27 Nov 2007 19:10:10 +1300 (NZDT) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 8D2818FC6D; Tue, 27 Nov 2007 19:09:57 +1300 (NZDT) In-Reply-To: X-Mailer: VM 7.19 under Emacs 23.0.50.3 X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:84207 Archived-At: > What's the point of doing this instead of running GDB as a subprocess > of Emacs in the usual way? (Since that is already implemented.) I think there's some confusion. GDB would still run as a subprocess of Emacs and have it's own pty associated with the GUD buffer. I'm talking about giving the the debuggee it's own pty and buffer instead of sharing the GUD buffer, i.e., one for GDB IO and another for program IO. Since the debuggee is *not* a child of Emacs it cannot be set up with a pty in the usual way. Currently this is done with a buffer using a dummy process to fake a separate pty. The advantage of using a separate pty is that Emacs doesn't have to guess whether user input is meant to be sent to the debuggee (immediately) or GDB (queued for later). -- Nick http://www.inet.net.nz/~nickrob