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


> Date: Sat, 23 Nov 2002 12:57:05 GMT
> From: a2782@dis.ulpgc.es
> 
> Any idea about how can I do this emacs-style invocation in (Kylix) C++? 
> I want to execute GDB and redirect its input to the output of my 
> program in C++ (in order to send commands to GDB); and its output to 
> the input of my C++ program (in order to parse the information which 
> GDB returns).

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?


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