Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: ac131313@redhat.com (Andrew Cagney)
To: Kevin Buettner <kevinb@redhat.com>
Cc: gdb@sources.redhat.com
Subject: Re: Is stub support for the 's' packet optional or required?
Date: Tue, 18 Feb 2003 02:39:00 -0000	[thread overview]
Message-ID: <20030218020408.EE11C3CF2@localhost.redhat.com> (raw)
In-Reply-To: <1030217235014.ZM670@localhost.localdomain> "from Kevin Buettner at Feb 17, 2003 04:50:15 pm"

> I've been told off-list that it is not required for a stub to
> implement support for the 's' packet.  I was also told that the
> documenation is wrong in this regard.  Specifically, it says:
> 
>     A stub is required to support the `g', `G', `m', `M', `c', and `s'
>     commands.  All other commands are optional.
> 
> See
>     http://sources.redhat.com/gdb/current/onlinedocs/gdb_32.html#SEC632
> and
>     http://world.std.com/~qqi/download/protocol.txt
> 
> (I often find the latter document to be the more useful of the two.)
> 
> I'd like to get other opinions regarding this matter.  Also, if it
> really is the case that stubs are NOT required to implement support
> for the 's' packet, then will all such stubs return the empty response
> which indicates that there is no support for that particular packet?

If GDB implements software single step, then the `s' packet is never
used.  Consequently, requiring the unconditional implementation of "s"
makes little sense.

Note though that, while a target that doesn't support the "s" packet
should return "" instead of "T...".  remote.c isn't exactly set up to
handle this - by the time it realizes it's got a problem it is a bit
late.  The step-out-of-range code tried to address this but in the
process created querky resume semantics.

Andrew


  reply	other threads:[~2003-02-18  2:39 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-17 23:50 Kevin Buettner
2003-02-18  2:39 ` Andrew Cagney [this message]
2003-02-18 16:30   ` Kevin Buettner
2003-02-18 16:51     ` Daniel Jacobowitz
2003-02-18 20:06       ` Kevin Buettner
2003-02-18 20:23         ` Daniel Jacobowitz
2003-02-18 20:42           ` Kevin Buettner
2003-02-18 21:03       ` Andrew Cagney
2003-02-18 21:43         ` Kevin Buettner
2003-02-18 23:43           ` Andrew Cagney

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=20030218020408.EE11C3CF2@localhost.redhat.com \
    --to=ac131313@redhat.com \
    --cc=gdb@sources.redhat.com \
    --cc=kevinb@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