From: Pedro Alves <pedro@codesourcery.com>
To: gdb@sourceware.org
Cc: "karthikeyan.s" <informkarthik@gmail.com>
Subject: Re: gdbserver delayed packet event issue
Date: Thu, 11 Nov 2010 11:00:00 -0000 [thread overview]
Message-ID: <201011111100.02615.pedro@codesourcery.com> (raw)
In-Reply-To: <AANLkTikyi9Z0KPy15vGRoFNcY-g_hGtT+csLYrgFPh_H@mail.gmail.com>
On Thursday 11 November 2010 05:52:17, karthikeyan.s wrote:
> Hi,
> I am seeing an issue with the gdb remote debugging, this is gdb 7.1.50
> version. I have marked the erroneous states with line --> below.
>
> gdbserver sometimes gets a delayed event for the packet
> QStartNoAckMode sent from the host. In the case pasted below gdbserver
> gets two events clubbed together when the client has sent the second
> "QStartNoAckMode" packet after its timeout. At this stage, gdbserver
> ends up sending two "$OK" while the client is expecting only one and
> the state gets messed up between client and server.
>
> 1) It seems that the client does not handle issues with the network.
> Instead it assumes the packet is lost on a timeout.
> 2) Why doesn't gdbserver get an event on the first request itself. I
> used writeshark on the client side to confirm the packet is being
> sent. And tcpdump on the remote side to see that the packet does come
> in at the target.
"7.1.50" is quite vague. All snapshots from the 7.1 release up to
the 7.2 release were named like that. There should be a date
after the "50". Which is it? There was a similar problem fixed
around April/March 2010.
You could also try switching to 7.2 or a later snapshot and
confirm the problem is gone.
--
Pedro Alves
next prev parent reply other threads:[~2010-11-11 11:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-11 5:52 karthikeyan.s
2010-11-11 11:00 ` Pedro Alves [this message]
2010-11-11 11:58 ` karthikeyan.s
2010-11-11 12:16 ` Pedro Alves
2010-11-15 9:29 ` karthikeyan.s
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=201011111100.02615.pedro@codesourcery.com \
--to=pedro@codesourcery.com \
--cc=gdb@sourceware.org \
--cc=informkarthik@gmail.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