This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdbserver for embedded targets?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]