This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: gdbserver for embedded targets?
- From: Jeremy Bennett <jeremy dot bennett at embecosm dot com>
- To: Greg McGary <greg dot mcgary at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Tue, 14 Feb 2012 08:53:41 +0000
- Subject: Re: gdbserver for embedded targets?
- References: <4F318D55.10402@gmail.com>
- Reply-to: jeremy dot bennett at embecosm dot com
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