From: Nick Roberts <nickrob@snap.net.nz>
To: rms@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: Opening a pty without a process
Date: Tue, 27 Nov 2007 19:09:56 +1300 [thread overview]
Message-ID: <18251.46260.730816.697476@kahikatea.snap.net.nz> (raw)
In-Reply-To: <E1Iwt27-0002S8-3a@fencepost.gnu.org>
> 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
next prev parent reply other threads:[~2007-11-27 6:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-05 20:46 Opening a pty without a process Nick Roberts
2007-11-26 20:27 ` Nick Roberts
2007-11-27 5:30 ` Richard Stallman
2007-11-27 6:09 ` Nick Roberts [this message]
2007-11-27 19:53 ` Richard Stallman
2007-11-27 23:23 ` Nick Roberts
2007-11-27 15:36 ` Stefan Monnier
2007-11-27 23:22 ` Nick Roberts
2007-11-28 2:21 ` Stefan Monnier
2007-11-28 4:16 ` Richard Stallman
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=18251.46260.730816.697476@kahikatea.snap.net.nz \
--to=nickrob@snap.net.nz \
--cc=emacs-devel@gnu.org \
--cc=rms@gnu.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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).