From: Daniel Jacobowitz <drow@false.org>
To: "Zoltán Filyó" <zoltan.filyo@ericsson.com>
Cc: gdb-patches@sourceware.org
Subject: Re: remote protocol patch
Date: Tue, 29 Jan 2008 19:33:00 -0000 [thread overview]
Message-ID: <20080129192740.GC9019@caradoc.them.org> (raw)
In-Reply-To: <2D8B78375B46EF4C85EE21B9EB64350A062ED604@esealmw103.eemea.ericsson.se>
On Wed, Jan 16, 2008 at 11:11:26AM +0100, Zoltán Filyó wrote:
>
> Hi,
>
> I found that the serial remote protocol runs into a deadlock when
> the serial line is noisy. Below a gdb log fragment with original
> code:
My strong recommendation is to not use the GDB serial protocol over a
noisy line. There's other problems, for instance with packets which
have different effects when repeated.
> r +$S05#b8
> w +$g#67
> r <Timeout: 3 seconds>
> w $g#67
> r <Timeout: 3 seconds>
> w $g#67
> r <Timeout: 3 seconds>
> w $g#67
> r <Timeout: 3 seconds><Timeout: 3 seconds>
> w -
> r <Timeout: 3 seconds>
> w -
> r <Timeout: 3 seconds>
> w -+
>
> infinitely. Because the target side NetBSD kernel throws all
> characters until get a new packet start ('$') char.
What's happened here, the four repetitions of $g#67 were all
completely lost, and then GDB timed out? IMO, we should treat some of
these timeouts as fatal to the protocol conversation.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2008-01-29 19:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-16 10:13 Zoltán Filyó
2008-01-29 19:33 ` Daniel Jacobowitz [this message]
2008-01-30 15:17 Zoltan Filyo
2008-01-30 16:52 ` Daniel Jacobowitz
2008-01-31 13:44 ` Zoltan Filyo
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=20080129192740.GC9019@caradoc.them.org \
--to=drow@false.org \
--cc=gdb-patches@sourceware.org \
--cc=zoltan.filyo@ericsson.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