From: Andrew Cagney <ac131313@cygnus.com>
To: gdb-patches@cygnus.com
Subject: Re: Patch to support NACK packet from stub
Date: Thu, 01 Apr 1999 00:00:00 -0000 [thread overview]
Message-ID: <36F0273C.D418EEF3@cygnus.com> (raw)
In-Reply-To: <5mu2vqw2co.fsf.cygnus.patches.gdb@jtc.redbacknetworks.com>
"J.T. Conklin" wrote:
>
> I discovered that the putpkt() routine does not handle NACK ('-')
> packets from remote stub, instead the NACK is junked and putpkt()
> waits until the subsequent read times out. This is a big penalty
> (the default value of remote_timeout is 20 seconds) that can be
> easily avoided.
>
> However, I had the '-' case fall through to SERIAL_TIMEOUT so the
> number of attempts a packet is sent is the same as timeouts. If we
> wanted to add a remote_debug for the SERIAL_TIMEOUT case, that code
> needs to duplicated.
(Thanks for comments from Fernando Nasser and Michael Snyder)
I think it would be best if we leave this one out of 4.18 and have a
hard think about it for devo. If you get rid of the timeout there is a
chance that other nastier things can happen.
Remembering that the remote GDB protocol is only robust against data
overrun what can happen is a sequence like:
-> <start><scrambled-data-looking-like-eop>
<- NACK
-> <more crambled data looking like another packet>
<- NACK
It is probably safer to just drain the target like the code is currently
doing.
Andrew
WARNING: multiple messages have this Message-ID
From: Andrew Cagney <ac131313@cygnus.com>
To: gdb-patches@cygnus.com
Subject: Re: Patch to support NACK packet from stub
Date: Wed, 17 Mar 1999 14:05:00 -0000 [thread overview]
Message-ID: <36F0273C.D418EEF3@cygnus.com> (raw)
Message-ID: <19990317140500.Lwd6yc9Fgg_NiiRk3CBB4FoUgAnhPMHhz6d4tFo6Gfc@z> (raw)
In-Reply-To: <5mu2vqw2co.fsf.cygnus.patches.gdb@jtc.redbacknetworks.com>
"J.T. Conklin" wrote:
>
> I discovered that the putpkt() routine does not handle NACK ('-')
> packets from remote stub, instead the NACK is junked and putpkt()
> waits until the subsequent read times out. This is a big penalty
> (the default value of remote_timeout is 20 seconds) that can be
> easily avoided.
>
> However, I had the '-' case fall through to SERIAL_TIMEOUT so the
> number of attempts a packet is sent is the same as timeouts. If we
> wanted to add a remote_debug for the SERIAL_TIMEOUT case, that code
> needs to duplicated.
(Thanks for comments from Fernando Nasser and Michael Snyder)
I think it would be best if we leave this one out of 4.18 and have a
hard think about it for devo. If you get rid of the timeout there is a
chance that other nastier things can happen.
Remembering that the remote GDB protocol is only robust against data
overrun what can happen is a sequence like:
-> <start><scrambled-data-looking-like-eop>
<- NACK
-> <more crambled data looking like another packet>
<- NACK
It is probably safer to just drain the target like the code is currently
doing.
Andrew
next parent reply other threads:[~1999-04-01 0:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <5mu2vqw2co.fsf.cygnus.patches.gdb@jtc.redbacknetworks.com>
1999-04-01 0:00 ` Andrew Cagney [this message]
1999-03-17 14:05 ` Andrew Cagney
1999-03-17 16:54 ` J.T. Conklin
1999-04-01 0:00 ` J.T. Conklin
1999-04-01 0:00 J.T. Conklin
1999-03-12 18:28 ` J.T. Conklin
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=36F0273C.D418EEF3@cygnus.com \
--to=ac131313@cygnus.com \
--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