This is the mail archive of the
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.firstname.lastname@example.org>
- Reply-to: jeremy dot bennett at embecosm dot com
On Tue, 2012-02-07 at 13:45 -0700, Greg McGary wrote:
> 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.
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:
Tel: +44 (1590) 610184
Cell: +44 (7970) 676050