emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opening a pty without a process


From: Nick Roberts
Subject: Re: Opening a pty without a process
Date: Tue, 27 Nov 2007 19:09:56 +1300

 > 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]