Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Vladimir Prus <ghost@cs.msu.su>
Cc: gdb@sources.redhat.com
Subject: Re: [remote] RFC: Replace qPart with qXfer
Date: Thu, 22 Jun 2006 13:17:00 -0000	[thread overview]
Message-ID: <20060622123942.GB6782@nevyn.them.org> (raw)
In-Reply-To: <e7dl4a$j6i$1@sea.gmane.org>

On Thu, Jun 22, 2006 at 12:41:45PM +0400, Vladimir Prus wrote:
> Daniel Jacobowitz wrote:
> 
> > `qXfer:OBJECT:read:ANNEX:OFFSET,LENGTH'
> >      Read uninterpreted bytes from the target's special data area
> >      identified by the keyword OBJECT.  Request LENGTH bytes starting
> >      at OFFSET bytes into the data.  The content and encoding of ANNEX
> >      is specific to the object; it can supply additional details about
> >      what data to access.
> 
> Why do we need OBJECT+ANNEX addressing and opposed to just OBJECT? If
> 'OBJECT' is just a string, can't we push anything in it, without needed
> extra level of addressing?

I inherited this from qPart, but I think it's a good idea - I actually
use it for XML descriptions.

OBJECT is the base of the request.  All "qXfer:OBJECT:read" requests
for a single value of OBJECT are expected to be handled in the same
way.  A stub which supports this OBJECT should return a non-empty
response.  ANNEX is a bit of auxilliary data, in case there's more than
one instance of OBJECT.

For instance:

qXfer:features:read:target.xml:0,100
  Read the overall target description.
qXfer:features:read:CHECKSUMS:0,100
  Read any precomputed SHA-1 checksums for target description files.
qXfer:features:read:foo.xml:0,100
  Read a specific XML file referenced using XInclude.

And then, if one of those is unavailable, it can return either "l" (no
data), or "E00" (annex unknown, or something else wrong with the
packet).

Sure, you could call that "qXfer:features-target.xml:read".  But it's
trickier for the target stub to match it in that case.

-- 
Daniel Jacobowitz
CodeSourcery


  parent reply	other threads:[~2006-06-22 12:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-22  8:42 Daniel Jacobowitz
2006-06-22  9:05 ` Vladimir Prus
2006-06-22 12:35   ` What's the difference between gdb arm targets? Dave Murphy
2006-06-22 12:39     ` Daniel Jacobowitz
2006-06-22 13:17   ` Daniel Jacobowitz [this message]
2006-06-23 16:23 ` [remote] RFC: Replace qPart with qXfer Eli Zaretskii
2006-06-23 18:06   ` Daniel Jacobowitz
2006-06-23 20:10     ` Eli Zaretskii
2006-06-24  2:24       ` Daniel Jacobowitz
2006-06-25  3:10       ` Karl Berry
2006-06-25  4:07         ` Eli Zaretskii

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=20060622123942.GB6782@nevyn.them.org \
    --to=drow@false.org \
    --cc=gdb@sources.redhat.com \
    --cc=ghost@cs.msu.su \
    /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