From: Greg McGary <greg.mcgary@gmail.com>
To: gdb@sourceware.org
Subject: gdbserver for embedded targets?
Date: Tue, 07 Feb 2012 20:45:00 -0000 [thread overview]
Message-ID: <4F318D55.10402@gmail.com> (raw)
Most gdbserver targets are full OSes (Linux, *BSD). I need a remote stub for an embedded multi-core DSP target. The DSPs are co-processors of an ARM, similar to the pairing of SPUs with PPC. When debugging, there will always be a full OS (Linux or Windoze) front-end system available. System topology looks like so:
Workstation: gdb client
... TCP ...
x86 front-end: gdbserver
... serial ...
ARM co-processor: target control
... shared memory, control registers ...
DSPs
The DSP doesn't handle interrupts, and all control is handled by the ARM, thus the ARM must run the stub. Traditional stub functionality (remote protocol handling + target processor control) is divided betweenthe front-end systemthe ARM. The front-end system will run gdbserver, and the target_ops will be populated with functions that send/receive requests over serial using a compact binary protocol. The ARM will run a simple command loop. The gdbserver/ARM interactions will be simple commands toread/write memory & registers, and control execution.
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.
Question: is the gdbserver target_ops interface suitable for such a target? I'm going to proceed under the assumption that it is, and will supplement if I find deficiencies.
Comments?
G
next reply other threads:[~2012-02-07 20:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-07 20:45 Greg McGary [this message]
2012-02-10 20:53 ` Tom Tromey
2012-02-14 8:54 ` Jeremy Bennett
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=4F318D55.10402@gmail.com \
--to=greg.mcgary@gmail.com \
--cc=gdb@sourceware.org \
/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