From: Eli Zaretskii <eliz@gnu.org>
To: Vladimir Prus <vladimir@codesourcery.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: Flash support part 3: documentation
Date: Fri, 21 Jul 2006 15:33:00 -0000 [thread overview]
Message-ID: <uejwfgeh3.fsf@gnu.org> (raw)
In-Reply-To: <200607211604.02942.vladimir@codesourcery.com> (message from Vladimir Prus on Fri, 21 Jul 2006 16:04:01 +0400)
> From: Vladimir Prus <vladimir@codesourcery.com>
> Date: Fri, 21 Jul 2006 16:04:01 +0400
> Cc: gdb-patches@sources.redhat.com
>
> > > @value{GDBN} groups flash memory programming operations
> > > +together, and sends a @samp{vFlashDone} request after each group; the
> > > +to delay erase operation until the @samp{vFlashDone} packet is received.
> >
> > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > Something is wrong here.
>
> Yes, this is the revised wording:
>
> @value{GDBN} groups flash memory programming operations
> together, and sends a @samp{vFlashDone} request after each group; the
> stub is allowed to delay erase operation until the @samp{vFlashDone}
> packet is received.
This replacement is fine with me.
> > > The set of @samp{vFlashWrite} packets
> > > +preceding a @samp{vFlashDone} packet must not overlap
> >
> > It is not clear what does ``must not overlap'' mean here. Taken
> > verbatim, the sentence seems to say that the _packets_ must not
> > overlap, but is that really what you want to say?
>
> No, I meant something more to this:
>
> The memory ranges specified by
> @samp{vFlashWrite} packets preceding a @samp{vFlashDone} packet must
> not overlap, and must appear in order of increasing addresses.
Yes, I guessed something like that. This wording is okay.
> > > Writes may fall outside the regions
> > > +given by the previously transmitted @samp{vFlashErase} packets, but
> > > +the results are unpredictable if a given area of flash is rewritten
> > > +without being erased.
> >
> > I'd rephrase this as follows:
> >
> > If the series of packets write data outside the region erased by the
> > preceding @samp{vFlashErase} packets, the results are unpredictable.
>
> I think this is slightly different. For example, target might have some extra
> fast method to erase entire flash, that gdb does not know about, but that
> user can invoke in some. Then, it's ok to send vFlashWrite without any
> vFlashErase packets at all. So the constraint is that area of flash is in
> erased state when vFlashWrite arrives, but not that vFlashErase was seen.
In that case, how about the following?
If the series of packets write data outside the region that was
erased either by the preceding @samp{vFlashErase} packets or by
some other target-specific method, the results are unpredictable.
> > > +@var{annex} must be empty.
> >
> > There's no @var{annex} in the @item that gives the packet's syntax.
>
> I must admit that I've copied this sentence from description of
> qXfer:auxv:read. While you're right that @var{annex} is not present in
> description of qXfer:memory-map:read, it's present in description of generic
> syntax of qXfer packet. The point of this sentence is to emphasise that annex
> part of generic qXfer packet should be empty for memory map.
Then just say something like "the annex part of generic qXfer packet
should be empty for memory map", and add a cross-reference to where
qXfer is described. But do not use @var{annex}.
> > > +@example
> >
> > Please use @smallexample everywhere.
>
> What is the difference between them?
@smallexample uses a slightly smaller font, and thus can squeeze more
text into each line without overflowing the page margins (in the
printed version).
> Do you mean that smallexample should be used everywhere in gdb docs?
Yes.
> I attach the revised patch, is it better now?
Yes, thanks.
next prev parent reply other threads:[~2006-07-21 15:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-20 9:43 Vladimir Prus
2006-07-20 19:57 ` Eli Zaretskii
2006-07-21 12:04 ` Vladimir Prus
2006-07-21 15:33 ` Eli Zaretskii [this message]
2006-07-22 12:40 ` Vladimir Prus
2006-07-22 14:05 ` Eli Zaretskii
2006-09-20 22:21 ` Daniel Jacobowitz
2006-09-21 3:22 ` Eli Zaretskii
2006-09-21 14:01 ` Daniel Jacobowitz
2006-08-17 8:24 ` Daniel Jacobowitz
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=uejwfgeh3.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=gdb-patches@sources.redhat.com \
--cc=vladimir@codesourcery.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