From: "Kris Warkentin" <kewarken@qnx.com>
To: <a2782@dis.ulpgc.es>, <gdb@sources.redhat.com>
Subject: Re: Emacs and GDB
Date: Mon, 25 Nov 2002 06:50:00 -0000 [thread overview]
Message-ID: <01f501c29491$f25e72c0$0202040a@catdog> (raw)
In-Reply-To: <200211231257.gANCv5306686@siglo21.dis.ulpgc.es>
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.
> >
>
next prev parent reply other threads:[~2002-11-25 14:50 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
2002-11-25 6:50 ` Kris Warkentin [this message]
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='01f501c29491$f25e72c0$0202040a@catdog' \
--to=kewarken@qnx.com \
--cc=a2782@dis.ulpgc.es \
--cc=gdb@sources.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