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


Another place you might like to look is the sources for DDD.  The file
'Agent.C' does the setup of the pty with the pipes and dups and all the
other fun stuff.  You can also look at some of it's subclasses such as
AsyncAgent which modify the behaviour somewhat.  A cool thing with DDD
(maybe emacs too?) is that you can access the gdb console and use 'show
args' to see how they setup the command line with the redirection and so on.

cheers,

Kris

----- Original Message -----
From: <a2782@dis.ulpgc.es>
To: <gdb@sources.redhat.com>
Sent: Saturday, November 23, 2002 7:57 AM
Subject: Re: Emacs and GDB


> 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).
>
> Thanks to all people who are replying me!
>
> > Emacs calls GDB like this:
> >
> >       gdb -fullname <args...>
> >
> > where \"<args...>\" is whatever you type at \"M-x gdb\"\'s prompt.
> >
> > In other words, if you tell Emacs to invoke GDB with \"gdb myprog\",
> > Emacs invokes \"gdb -fullname myprog\".
> >
> > See gud.el in the Emacs distribution for more details, and see the GDB
> > user manual for the description of the -fullname option.
> >
>


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