This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Emacs and GDB


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]