* RE: Interface to GDB
@ 2003-09-07 10:23 Manoj Verma, Noida
2003-09-08 19:47 ` Jim Blandy
0 siblings, 1 reply; 6+ messages in thread
From: Manoj Verma, Noida @ 2003-09-07 10:23 UTC (permalink / raw)
To: gdb; +Cc: Bob Rossi
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..
Thanks
-----Original Message-----
From: Bob Rossi [mailto:bob@brasko.net]
Sent: Saturday, September 06, 2003 7:42 PM
To: Manoj Verma, Noida
Cc: gdb@sources.redhat.com
Subject: Re: Interface to GDB
On Sat, Sep 06, 2003 at 07:27:11PM +0530, Manoj Verma, Noida wrote:
> Hi,
> I have an IDE running on windows to which I want to attach the GDB
debugger
> support.
>
> 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
the
> 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,
> Manoj
>
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.
http://www.gnu.org/manual/gdb/html_chapter/gdb_21.html#SEC203
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.
http://www.gnu.org/manual/gdb/html_chapter/gdb_22.html#SEC216
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.
Good Luck,
You will need it.
Bob Rossi
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Interface to GDB
2003-09-07 10:23 Interface to GDB Manoj Verma, Noida
@ 2003-09-08 19:47 ` Jim Blandy
2003-09-08 19:58 ` Elena Zannoni
2003-09-08 20:07 ` Andrew Cagney
0 siblings, 2 replies; 6+ messages in thread
From: Jim Blandy @ 2003-09-08 19:47 UTC (permalink / raw)
To: Manoj Verma, Noida; +Cc: gdb, Bob Rossi
"Manoj Verma, Noida" <manojv@noida.hcltech.com> writes:
> 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..
I think MI is pretty useable. But for what it's worth, Insight, the
Tcl/Tk-based GUI for GDB, works the way you describe.
http://sources.redhat.com/insight/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Interface to GDB
2003-09-08 19:47 ` Jim Blandy
@ 2003-09-08 19:58 ` Elena Zannoni
2003-09-08 20:07 ` Andrew Cagney
1 sibling, 0 replies; 6+ messages in thread
From: Elena Zannoni @ 2003-09-08 19:58 UTC (permalink / raw)
To: Jim Blandy; +Cc: Manoj Verma, Noida, gdb, Bob Rossi
Jim Blandy writes:
>
> "Manoj Verma, Noida" <manojv@noida.hcltech.com> writes:
> > 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..
>
> I think MI is pretty useable. But for what it's worth, Insight, the
> Tcl/Tk-based GUI for GDB, works the way you describe.
>
> http://sources.redhat.com/insight/
Yep, but please do not do that. The approach has serious
limitations. Please use MI. That is the supported gdb interface for
GUIs. Eclipse uses it pretty successfully.
elena
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Interface to GDB
2003-09-08 19:47 ` Jim Blandy
2003-09-08 19:58 ` Elena Zannoni
@ 2003-09-08 20:07 ` Andrew Cagney
1 sibling, 0 replies; 6+ messages in thread
From: Andrew Cagney @ 2003-09-08 20:07 UTC (permalink / raw)
To: Jim Blandy; +Cc: Manoj Verma, Noida, gdb, Bob Rossi
> "Manoj Verma, Noida" <manojv@noida.hcltech.com> writes:
>
>> 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..
>
>
> I think MI is pretty useable. But for what it's worth, Insight, the
> Tcl/Tk-based GUI for GDB, works the way you describe.
>
> http://sources.redhat.com/insight/
Trying to mimic insight would be asking for trouble. Insight's
overreliance on GDB internals means it breaks when ever GDB improves its
own design c.f., diassembler cleanups.
Remember, part of the long term MI road map is to get it implemented as
a thin vineer each command having a 1:1 correspondance to a published
interface.
Andrew
^ permalink raw reply [flat|nested] 6+ messages in thread
* Interface to GDB
@ 2003-09-06 13:58 Manoj Verma, Noida
2003-09-06 14:11 ` Bob Rossi
0 siblings, 1 reply; 6+ messages in thread
From: Manoj Verma, Noida @ 2003-09-06 13:58 UTC (permalink / raw)
To: gdb
Hi,
I have an IDE running on windows to which I want to attach the GDB debugger
support.
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 the
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,
Manoj
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Interface to GDB
2003-09-06 13:58 Manoj Verma, Noida
@ 2003-09-06 14:11 ` Bob Rossi
0 siblings, 0 replies; 6+ messages in thread
From: Bob Rossi @ 2003-09-06 14:11 UTC (permalink / raw)
To: Manoj Verma, Noida; +Cc: gdb
On Sat, Sep 06, 2003 at 07:27:11PM +0530, Manoj Verma, Noida wrote:
> Hi,
> I have an IDE running on windows to which I want to attach the GDB debugger
> support.
>
> 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 the
> 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,
> Manoj
>
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.
http://www.gnu.org/manual/gdb/html_chapter/gdb_21.html#SEC203
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.
http://www.gnu.org/manual/gdb/html_chapter/gdb_22.html#SEC216
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.
Good Luck,
You will need it.
Bob Rossi
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-09-08 20:07 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-07 10:23 Interface to GDB Manoj Verma, Noida
2003-09-08 19:47 ` Jim Blandy
2003-09-08 19:58 ` Elena Zannoni
2003-09-08 20:07 ` Andrew Cagney
-- strict thread matches above, loose matches on Subject: below --
2003-09-06 13:58 Manoj Verma, Noida
2003-09-06 14:11 ` Bob Rossi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox