Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Philippe Waroquiers <philippe.waroquiers@skynet.be>
To: Pedro Alves <palves@redhat.com>
Cc: Stan Shebs <stanshebs@earthlink.net>, gdb-patches@sourceware.org
Subject: Re: Documenting E. packet. (was Re: [patch] Fix PR 13392 : check offset of JMP insn)
Date: Wed, 07 Mar 2012 21:21:00 -0000	[thread overview]
Message-ID: <1331155249.2209.65.camel@soleil> (raw)
In-Reply-To: <4F57CC1B.3030104@redhat.com>

On Wed, 2012-03-07 at 20:59 +0000, Pedro Alves wrote:
> > It looks better if at all places where an E NN is accepted by GDB,
> > GDB would also accept an E. packet.
> 
> 
> Yeah, though we'd a careful audit.  We should be careful in avoiding the
> case of with newer stubs sending "E.xxx" to GDBs that haven't been updated,
> and those GDBs not understanding it as an error packet.
Not clear to me how this can be achieved. 

E.g. if qRcmd now accepts an E. error packet in gdb 7.5,
and a stub is modified to send such an E., trying to use
this stub with gdb 7.4 or before will not give the expected behaviour
when E. is returned by the new stub to the old gdb.

Unless the new stub would have a way to know that the gdb does not
understand E. reply to qRcmd ?

> 
> > But that is not the current behaviour, so either remote.c is
> > changed to consistently accept E NN and E. everywhere,
> > or the protocol doc must match the current behaviour,
> > and indicate for each packet if an E NN and/or an E. error is
> > accepted.
> 
> 
> In any case, the documentation should be updated.
Yes, either both code and doc, or only doc.

Philippe




  reply	other threads:[~2012-03-07 21:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-06 13:39 [patch] Fix PR 13392 : check offset of JMP insn Yao Qi
2012-03-06 17:03 ` Pedro Alves
2012-03-06 20:15   ` Philippe Waroquiers
2012-03-06 21:48     ` Stan Shebs
2012-03-07 20:41       ` Documenting E. packet. (was Re: [patch] Fix PR 13392 : check offset of JMP insn) Philippe Waroquiers
2012-03-07 20:59         ` Pedro Alves
2012-03-07 21:21           ` Philippe Waroquiers [this message]
2012-03-07  8:25   ` [patch] Fix PR 13392 : check offset of JMP insn Yao Qi
2012-03-08 17:07     ` Pedro Alves
2012-03-09  3:51       ` Yao Qi

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=1331155249.2209.65.camel@soleil \
    --to=philippe.waroquiers@skynet.be \
    --cc=gdb-patches@sourceware.org \
    --cc=palves@redhat.com \
    --cc=stanshebs@earthlink.net \
    /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