From: David Taylor <dtaylor@emc.com>
To: gdb@sourceware.org
Subject: responses to remote target errors
Date: Mon, 09 Feb 2015 18:48:00 -0000 [thread overview]
Message-ID: <14201.1423507718@usendtaylorx2l> (raw)
Examining GDB's handling of responses to errors on a remote target, I
see that
E<2 hex digits>
is always accepted as an error return; and that
E.<string>
appears to sometimes be accepted. Now, how
E<2 hex digits>
is handled depends upon whether the first hex digit is a 1 or not, if it
is a 1, then the second hex digit indicates which field the remote
target objected to. But, if the user does not have remote debugging
turned on, they probably don't know which low level command caused the
problem never mind what was sent in that field to the remote target.
If the first hex digit is not a 1, then the error code is thrown away
and never seen by the user. The user only knows that there was an error
and which user GDB command was the last command issued.
I would like
E.<string>
or some variant of it to be accepted whenever
E<2 hex digits>
is accepted. And for the string to be printed!
One question is whether there should be some `structure' within the
string. Possibilities include 2 hex digits followed by a space at the
beginning:
E.<2 hex digits> <string>
or maybe:
E.[<2 hex digits> ]<string>
I lean towards
E.<string>
(i.e., no hex digits -- keep it simple), but I could envision the hex
digits being used by a GUI.
Do others think that this would be a good idea? And, if yes, what form
should it take?
Thoughts?
David
--
David Taylor
dtaylor at emc dot com
reply other threads:[~2015-02-09 18:48 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=14201.1423507718@usendtaylorx2l \
--to=dtaylor@emc.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