This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Emacs and GDB
- From: Fernando Nasser <fnasser at redhat dot com>
- To: a2782 at dis dot ulpgc dot es
- Cc: gdb at sources dot redhat dot com
- Date: Thu, 05 Dec 2002 19:56:39 -0500
- Subject: Re: Emacs and GDB
- Organization: Red Hat , Inc. - Toronto
- References: <200211231133.gANBXsA06590@siglo21.dis.ulpgc.es> <2950-Sat23Nov2002133546+0200-eliz@is.elta.co.il> <200211231257.gANCv5306686@siglo21.dis.ulpgc.es>
a2782@dis.ulpgc.es wrote:> 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).
You should also look at the MI interface (see the manual). It is the safer way
for sending commands and receiving output from GDB that is to be parsed. It
won't change frequently like the output printed for human consumption.
--
Fernando Nasser
Red Hat - Toronto E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9