From: jsung <jsung@rcnets.com>
To: "'gdb-patches@cygnus.com'" <gdb-patches@cygnus.com>,
"'bug-gdb@prep.ai.mit.edu'" <bug-gdb@prep.ai.mit.edu>
Subject: Remote serial protocol
Date: Mon, 09 Mar 1998 13:15:00 -0000 [thread overview]
Message-ID: <B118D1CA5950D1119E1500805FBB8CA1029C83@RCSERVER> (raw)
Dear GDB maintainer:
If what I'm asking is described somewhere, please just point it to me.
I've looked at Deja News and gdbint.info.
For remote debugging, I looked at remote.c. We are trying to use the
GDB remote serial protocol, perhaps extending it, to satisfy something
GDB wasn't quite designed to do: automated testing. Since we work in
the embedded environment, there are a few features that are missing in
the protocol:
- There is no way to address the I/O space.
- Many of the peripheral devices care whether it is a 8-, 16-bit, or
whatever access. The "m" and the "M" command does not facilitate
that. I understand that for application debugging, it really
doesn't matter how the values get into memory.
- For background debugging (I believe GDB wasn't designed to do
this), we need a way to do a set of commands in an atomic fashion.
Many peripheral devices have states, so we cannot allow any
interruption. For example, one sometimes has do a write and then
a read just to get the status out. For automated testing, the
software needs to run at full speed and cannot be stopped.
At first, I thought I can use the extended remote protcol, i.e., the "!"
command, but it looks like it is for gdbserver to fork off another
process.
So, what is the proper way of extending the GDB remote serial protocol?
I understand that if we extend the protocol, we have to enhance the
debug stub.
Thanks.
Jim
-----
Jim Sung <jsung@rcnets.com> (619)450-3370 x1219
RC Networks Fax: (619)450-3369
Flanders Dr., Suite 212
San Diego, CA 92121
reply other threads:[~1998-03-09 13:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=B118D1CA5950D1119E1500805FBB8CA1029C83@RCSERVER \
--to=jsung@rcnets.com \
--cc=bug-gdb@prep.ai.mit.edu \
--cc=gdb-patches@cygnus.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