This is the mail archive of the
mailing list for the GDB project.
RE: Interface to GDB
- From: "Manoj Verma, Noida" <manojv at noida dot hcltech dot com>
- To: gdb at sources dot redhat dot com
- Cc: Bob Rossi <bob at brasko dot net>
- Date: Sun, 7 Sep 2003 15:52:32 +0530
- Subject: RE: Interface to GDB
If that is the case, just for an idea .........
is it possible if I somehow bypass the CLI related code from the GDB source
code and call the basic functions like set_breakpoint(), remove_breakpoint()
etc..etc.. from my IDE code..
If any one has done similar things, pl. provide some guidance..
From: Bob Rossi [mailto:email@example.com]
Sent: Saturday, September 06, 2003 7:42 PM
To: Manoj Verma, Noida
Subject: Re: Interface to GDB
On Sat, Sep 06, 2003 at 07:27:11PM +0530, Manoj Verma, Noida wrote:
> I have an IDE running on windows to which I want to attach the GDB
> I have configured the GDB server for the target "arm-linux".
> The GDB host is configured on MinGW-Msys environment on windows.
> The communication protocol used here is TCP/IP.
> The UI designing part is done, now I want to use GDB as the debugger in
> back end.
> My concern is how do I interface my IDE program with the GDB?
> Does GDB makes any standard interfaces available to the external world?
> Thanks & Regards,
Every popular front to GDB, that I know of, is a big hack. They
literally parse the output of the regular gdb commands. Some of them go
as far as to use annotations.
This was originally designed to allow Emacs to act as a front end to
GDB. Annotations is not the way to go. However, if your front end doesn't
use annotations, it probably will not support old GDB versions.
However, there is light. Some people working on GDB already designed a
new interface to GDB. Its called the machine interface.
This is a much better way to go. However, since its new, there may still
be bugs, and it will only work with newer GDB's.
You will need it.