Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Vladimir Prus <ghost@cs.msu.su>
To: gdb@sources.redhat.com
Subject: Re: Memory map with vFlashWrite
Date: Wed, 21 Nov 2007 16:10:00 -0000	[thread overview]
Message-ID: <fi1l0d$ce9$1@ger.gmane.org> (raw)
In-Reply-To: <47444151.90604@geensys.com>

Guillaume MENANT wrote:

> Hello,
> 
> 1 - Is the memory map mandatory for using vFlashXxxx commands ?

Yes. The memory map should come as XML via target -- there's 'mem'
command that can be used to define memory map from gdb side, but
I don't think it can handle flash.

> 2 - If yes, how does it works ? Gdb sends a "qSupported" command, then
> the stub answers with "qXfer:memory-map:read", then Gdb sends a
> "qXfer:memory-map:read::offset,length" and then the stub answers with an
> "l data" ?

Yes.

> 3 - If the process is correct, what values do we use for offset and
> length "qXfer:memory-map:read" command ? Do we send the whole XML file
> in the "l data" reply ?

Who are "we"? GDB generally will try to read data using chunks as bit
as the remote side can handle. The remote side should behave as 
specified in the qXfer documentation -- in particular, I don't think
it's allowed to return more data than asked for.

- Volodya



  reply	other threads:[~2007-11-21 16:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-21 14:31 Guillaume MENANT
2007-11-21 16:10 ` Vladimir Prus [this message]
2007-11-23  9:36   ` Guillaume MENANT

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='fi1l0d$ce9$1@ger.gmane.org' \
    --to=ghost@cs.msu.su \
    --cc=gdb@sources.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