* GDB commands and GDB protocol
@ 2007-10-11 8:13 Guillaume MENANT
2007-10-11 12:13 ` Daniel Jacobowitz
0 siblings, 1 reply; 8+ messages in thread
From: Guillaume MENANT @ 2007-10-11 8:13 UTC (permalink / raw)
To: gdb
Hello, I'm replacing a proprietary application (GRMON) by a free GDB wrapper (to make the link between GDB protocol and a specific one used by GRMON)
In order to do this, I'm seeking a document which would explain the GDB protocol (TCP link) and all mandatory commands in order to interface my application with Eclipse+CDT.
Thanks.
--
Guillaume Menant
----------------------------------------------------------------
*Ingénieur d’étude– /Software Engineer/**//*
La Fleuriaye – Rue Alessandro Volta – BP 50 758
44 481 Carquefou Cedex
*Tél** : +33 (0)2 53 46 00 70***
*Mobile : +33 (0)6 88 88 74 74*
*/mailto:guillaume.menant@geensys.com/**//*
http://www.geensys.com <http://www.geensys.com/>
----------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: GDB commands and GDB protocol
2007-10-11 8:13 GDB commands and GDB protocol Guillaume MENANT
@ 2007-10-11 12:13 ` Daniel Jacobowitz
2007-10-11 12:41 ` Guillaume MENANT
0 siblings, 1 reply; 8+ messages in thread
From: Daniel Jacobowitz @ 2007-10-11 12:13 UTC (permalink / raw)
To: Guillaume MENANT; +Cc: gdb
On Thu, Oct 11, 2007 at 10:13:20AM +0200, Guillaume MENANT wrote:
> Hello, I'm replacing a proprietary application (GRMON) by a free GDB wrapper
> (to make the link between GDB protocol and a specific one used by GRMON)
> In order to do this, I'm seeking a document which would explain the GDB
> protocol (TCP link) and all mandatory commands in order to interface my
> application with Eclipse+CDT.
There is documentation of the remote protocol in the manual. If
there's anything unclear about it, please ask here so we can improve
the documentation.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: GDB commands and GDB protocol
2007-10-11 12:13 ` Daniel Jacobowitz
@ 2007-10-11 12:41 ` Guillaume MENANT
2007-10-11 12:53 ` Daniel Jacobowitz
0 siblings, 1 reply; 8+ messages in thread
From: Guillaume MENANT @ 2007-10-11 12:41 UTC (permalink / raw)
To: Guillaume MENANT, gdb
I've found this page :
http://sources.redhat.com/gdb/onlinedocs/gdb_33.html#SEC679
I still have some questions :
- We just have to handle commands from the page above to manage the GDB
protocol (in TCP) ? The is no specific encapsulation ?
- How does Eclipse will know internal registers of my chip (registers
like sp, pc, ...) ? Using qXfer and a XML file ? Is it mandatory for a
debugger to know internal registers ?
Guillaume Menant
Daniel Jacobowitz a écrit :
> On Thu, Oct 11, 2007 at 10:13:20AM +0200, Guillaume MENANT wrote:
>
>> Hello, I'm replacing a proprietary application (GRMON) by a free GDB wrapper
>> (to make the link between GDB protocol and a specific one used by GRMON)
>> In order to do this, I'm seeking a document which would explain the GDB
>> protocol (TCP link) and all mandatory commands in order to interface my
>> application with Eclipse+CDT.
>>
>
> There is documentation of the remote protocol in the manual. If
> there's anything unclear about it, please ask here so we can improve
> the documentation.
>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: GDB commands and GDB protocol
2007-10-11 12:41 ` Guillaume MENANT
@ 2007-10-11 12:53 ` Daniel Jacobowitz
0 siblings, 0 replies; 8+ messages in thread
From: Daniel Jacobowitz @ 2007-10-11 12:53 UTC (permalink / raw)
To: Guillaume MENANT; +Cc: gdb
On Thu, Oct 11, 2007 at 02:41:17PM +0200, Guillaume MENANT wrote:
> I've found this page :
> http://sources.redhat.com/gdb/onlinedocs/gdb_33.html#SEC679
> I still have some questions :
> - We just have to handle commands from the page above to manage the GDB
> protocol (in TCP) ? The is no specific encapsulation ?
The Overview at the top of that page describes the encapsulation.
> - How does Eclipse will know internal registers of my chip (registers like sp,
> pc, ...) ? Using qXfer and a XML file ? Is it mandatory for a debugger to know
> internal registers ?
The standard registers, like sp and pc, Eclipse will get the names
directly from GDB. It's only if you have extra board-specific or
core-specific registers that you need to deal with XML descriptions.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: GDB commands and GDB protocol
2007-10-12 7:35 ` Guillaume MENANT
@ 2007-10-12 11:55 ` Daniel Jacobowitz
0 siblings, 0 replies; 8+ messages in thread
From: Daniel Jacobowitz @ 2007-10-12 11:55 UTC (permalink / raw)
To: Guillaume MENANT; +Cc: gdb
On Fri, Oct 12, 2007 at 09:35:07AM +0200, Guillaume MENANT wrote:
> I've got an question about the use of GDB. When my wrapper application will
> handle all commands described here :
> http://sources.redhat.com/gdb/onlinedocs/gdb_33.html#SEC713, how will I load my
> embedded application ? GDB handle RAM/Flash commands but there is no "load"
> command. So when I will make a "Load program" in Eclipse, will it use GDB
> (RAM/Flash commands) ?
Yes, it will. There's no special remote packets for load.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: GDB commands and GDB protocol
2007-10-11 13:08 ` Daniel Jacobowitz
@ 2007-10-12 7:35 ` Guillaume MENANT
2007-10-12 11:55 ` Daniel Jacobowitz
0 siblings, 1 reply; 8+ messages in thread
From: Guillaume MENANT @ 2007-10-12 7:35 UTC (permalink / raw)
To: Daniel Jacobowitz, gdb
I've got an question about the use of GDB. When my wrapper application
will handle all commands described here :
http://sources.redhat.com/gdb/onlinedocs/gdb_33.html#SEC713, how will I
load my embedded application ? GDB handle RAM/Flash commands but there
is no "load" command. So when I will make a "Load program" in Eclipse,
will it use GDB (RAM/Flash commands) ?
Thanks.
Guillaume Menant
Daniel Jacobowitz a écrit :
> On Thu, Oct 11, 2007 at 03:00:21PM +0200, Guillaume MENANT wrote:
>
>> Thanks a lot for your answers. Another question : Where does GDB will get
>> information about the standard internal registers of my chip (a SPARC V8 in my
>> case) ?
>>
>
> What sort of information do you mean?
>
> The GDB port to SPARC knows the names and uses of the standard SPARC registers.
>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: GDB commands and GDB protocol
2007-10-11 13:00 Guillaume MENANT
@ 2007-10-11 13:08 ` Daniel Jacobowitz
2007-10-12 7:35 ` Guillaume MENANT
0 siblings, 1 reply; 8+ messages in thread
From: Daniel Jacobowitz @ 2007-10-11 13:08 UTC (permalink / raw)
To: Guillaume MENANT; +Cc: gdb
On Thu, Oct 11, 2007 at 03:00:21PM +0200, Guillaume MENANT wrote:
> Thanks a lot for your answers. Another question : Where does GDB will get
> information about the standard internal registers of my chip (a SPARC V8 in my
> case) ?
What sort of information do you mean?
The GDB port to SPARC knows the names and uses of the standard SPARC registers.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: GDB commands and GDB protocol
@ 2007-10-11 13:00 Guillaume MENANT
2007-10-11 13:08 ` Daniel Jacobowitz
0 siblings, 1 reply; 8+ messages in thread
From: Guillaume MENANT @ 2007-10-11 13:00 UTC (permalink / raw)
To: gdb
Thanks a lot for your answers. Another question : Where does GDB will
get information about the standard internal registers of my chip (a
SPARC V8 in my case) ?
Guillaume Menant
Daniel Jacobowitz a écrit :
> On Thu, Oct 11, 2007 at 02:41:17PM +0200, Guillaume MENANT wrote:
>
>> I've found this page :
>> http://sources.redhat.com/gdb/onlinedocs/gdb_33.html#SEC679
>> I still have some questions :
>> - We just have to handle commands from the page above to manage the GDB
>> protocol (in TCP) ? The is no specific encapsulation ?
>>
>
> The Overview at the top of that page describes the encapsulation.
>
>
>> - How does Eclipse will know internal registers of my chip (registers like sp,
>> pc, ...) ? Using qXfer and a XML file ? Is it mandatory for a debugger to know
>> internal registers ?
>>
>
> The standard registers, like sp and pc, Eclipse will get the names
> directly from GDB. It's only if you have extra board-specific or
> core-specific registers that you need to deal with XML descriptions.
>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2007-10-12 11:55 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-11 8:13 GDB commands and GDB protocol Guillaume MENANT
2007-10-11 12:13 ` Daniel Jacobowitz
2007-10-11 12:41 ` Guillaume MENANT
2007-10-11 12:53 ` Daniel Jacobowitz
2007-10-11 13:00 Guillaume MENANT
2007-10-11 13:08 ` Daniel Jacobowitz
2007-10-12 7:35 ` Guillaume MENANT
2007-10-12 11:55 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).