gdbserver for embedded targets?

Jeremy Bennett jeremy.bennett@embecosm.com
Tue Feb 14 08:54:00 GMT 2012


On Tue, 2012-02-07 at 13:45 -0700, Greg McGary wrote:

<snip>

> I really don't want to write a remote-protocol server, and would
> rather leverage the existing gdbserver, since presumably it is
> maintained and stays current with enhancements to the remote protocol.

Hi Greg,

A Remote Serial Protocol Server for a native target isn't a complex
program. Some simple serial comms to get the packets, and then a switch
statement on the text in the packet. You might find it quicker and
easier to write (or adapt) one, rather than modifying gdbserver.

A while ago, I wrote a short application note of implementing Remote
Serial Protocol Servers, which includes example code you can freely use.
You might find this useful:

        http://www.embecosm.com/download/ean4.html

HTH,


Jeremy

-- 
Tel:      +44 (1590) 610184
Cell:     +44 (7970) 676050
SkypeID: jeremybennett
Email:   jeremy.bennett@embecosm.com
Web:     www.embecosm.com



More information about the Gdb mailing list