From: Eli Zaretskii <eliz@is.elta.co.il>
To: Jim Blandy <jimb@redhat.com>
Cc: a2782@dis.ulpgc.es, gdb@sources.redhat.com
Subject: Re: Emacs and GDB
Date: Sat, 23 Nov 2002 21:55:00 -0000 [thread overview]
Message-ID: <Pine.SUN.3.91.1021124075341.13311D-100000@is> (raw)
In-Reply-To: <vt2fztr272n.fsf@zenia.red-bean.com>
On 23 Nov 2002, Jim Blandy wrote:
> > Why not do what Emacs does: create a pipe for communications between
> > GDB and your program, then fork/exec GDB and redirect its standard
> > streams to the pipe using dup2/dup system calls?
>
> Actually, Emacs creates a pseudo-tty, and runs GDB there.
Actually, Emacs does both: it uses pseudo-ttys where available, or
creates a pipe where they aren't. (More accurately, there's also a third
method, via a socket.)
The source file process.c in the Emacs distribution has the gory details.
next prev parent reply other threads:[~2002-11-24 5:55 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-23 2:36 a2782
2002-11-23 3:36 ` Eli Zaretskii
2002-11-23 3:59 ` a2782
2002-11-23 12:34 ` Eli Zaretskii
2002-11-23 15:52 ` Jim Blandy
2002-11-23 21:55 ` Eli Zaretskii [this message]
2002-11-25 6:50 ` Kris Warkentin
2002-12-05 16:56 ` Fernando Nasser
2002-12-09 9:40 ` a2782
2002-12-09 10:12 ` Keith Seitz
2008-11-06 7:07 emacs and gdb Dave Milter
2008-11-06 9:16 ` Andreas Schwab
2008-11-06 9:40 ` Dave Milter
2008-11-06 9:44 ` Andreas Schwab
2008-11-06 10:31 ` Dave Milter
2009-01-25 1:17 ` Nick Roberts
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=Pine.SUN.3.91.1021124075341.13311D-100000@is \
--to=eliz@is.elta.co.il \
--cc=a2782@dis.ulpgc.es \
--cc=gdb@sources.redhat.com \
--cc=jimb@redhat.com \
/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