* Memory map with vFlashWrite
@ 2007-11-21 14:31 Guillaume MENANT
2007-11-21 16:10 ` Vladimir Prus
0 siblings, 1 reply; 3+ messages in thread
From: Guillaume MENANT @ 2007-11-21 14:31 UTC (permalink / raw)
To: gdb
Hello,
1 - Is the memory map mandatory for using vFlashXxxx commands ?
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" ?
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 ?
Thanks for your answers.
--
Guillaume MENANT
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Memory map with vFlashWrite
2007-11-21 14:31 Memory map with vFlashWrite Guillaume MENANT
@ 2007-11-21 16:10 ` Vladimir Prus
2007-11-23 9:36 ` Guillaume MENANT
0 siblings, 1 reply; 3+ messages in thread
From: Vladimir Prus @ 2007-11-21 16:10 UTC (permalink / raw)
To: gdb
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Memory map with vFlashWrite
2007-11-21 16:10 ` Vladimir Prus
@ 2007-11-23 9:36 ` Guillaume MENANT
0 siblings, 0 replies; 3+ messages in thread
From: Guillaume MENANT @ 2007-11-23 9:36 UTC (permalink / raw)
To: gdb
Thanks for your answers
Vladimir Prus wrote:
>
> 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
>
>
>
>
--
View this message in context: http://www.nabble.com/Memory-map-with-vFlashWrite-tf4850485.html#a13909258
Sent from the Sourceware - gdb list mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-11-23 9:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-21 14:31 Memory map with vFlashWrite Guillaume MENANT
2007-11-21 16:10 ` Vladimir Prus
2007-11-23 9:36 ` Guillaume MENANT
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox