From: Steven Johnson <sjohnson@sakuraindustries.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [rfa/doc] Add section on interrupts to remote protocol documentation
Date: Fri, 18 Nov 2005 15:33:00 -0000 [thread overview]
Message-ID: <437DE8A6.9000505@sakuraindustries.com> (raw)
In-Reply-To: <uzmo23xaj.fsf@gnu.org>
Eli Zaretskii wrote:
>>Date: Fri, 18 Nov 2005 16:04:58 +1100
>>From: Steven Johnson <sjohnson@sakuraindustries.com>
>>
>>Otherwise, ^C is ignored as a special character. What does "interrupt"
>>mean when you are not doing anything that can be interrupted?
>>
>>
>Isn't this what Kevin's text says? Here's the relevant fragment:
>
> Interrupts received while the program is stopped will be discarded.
>
>
>
>
I think we are talking at cross purposes. I dont think anyone disputes
Interrupting when the target is stopped means nothing (to either GDB or
the target), and it makes sense to discard them if they are not within a
packet, because ^C is not a valid start of packet character.
What both Jim Blandy and I seem to be talking about is the apparent
"new" requirement to escape ^C when its in a packet. I fail to see why
it requires to be escaped. It is only valid at a very specific point in
time, so why does it need to be escaped?
It hasnt been escaped in the past, and im not aware of any problems that
not escaping it introduces.
As Jim points out, the X packet never used to document ^C as requiring
escaping, and he says it isnt escaped in the GDB code. So if it is now
going to be escaped, that will break stubs, that rely on the old
behavior. The old manual said that the only character escaped in the
'X' packet was $, # and 0x7d. But now we have added ^C to that list,
and have broken backward compatibility by doing so.
If thats what you want to do, thats fine, but it is no longer compatible
with any stub that supported the old behavior of the X packet.
At least thats how ive interpreted "{Ctrl-C} must not be sent as part of
a packet as defined in the Overview section.".
Steven
next prev parent reply other threads:[~2005-11-18 14:43 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-18 5:59 Kevin Buettner
2005-11-18 8:35 ` Jim Blandy
2005-11-18 11:20 ` Steven Johnson
2005-11-18 11:57 ` Jim Blandy
2005-11-18 17:23 ` Kevin Buettner
2005-11-18 20:25 ` Jim Blandy
2005-11-18 13:53 ` Eli Zaretskii
2005-11-18 15:33 ` Steven Johnson [this message]
2005-11-18 14:06 ` Eli Zaretskii
2005-11-18 21:45 ` Kevin Buettner
2005-11-18 21:47 ` Daniel Jacobowitz
2005-11-18 22:07 ` Jim Blandy
2005-11-19 10:57 ` Steven Johnson
2005-11-18 22:18 ` Kevin Buettner
2005-11-18 22:19 ` Michael Snyder
2005-11-18 22:38 ` Eli Zaretskii
2005-11-19 1:21 ` Kevin Buettner
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=437DE8A6.9000505@sakuraindustries.com \
--to=sjohnson@sakuraindustries.com \
--cc=eliz@gnu.org \
--cc=gdb-patches@sources.redhat.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