Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Jeremy Bennett <jeremy.bennett@embecosm.com>
To: Greg McGary <greg.mcgary@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: gdbserver for embedded targets?
Date: Tue, 14 Feb 2012 08:54:00 -0000	[thread overview]
Message-ID: <1329209621.14102.112.camel@laria> (raw)
In-Reply-To: <4F318D55.10402@gmail.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


      parent reply	other threads:[~2012-02-14  8:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-07 20:45 Greg McGary
2012-02-10 20:53 ` Tom Tromey
2012-02-14  8:54 ` Jeremy Bennett [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1329209621.14102.112.camel@laria \
    --to=jeremy.bennett@embecosm.com \
    --cc=gdb@sourceware.org \
    --cc=greg.mcgary@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox