Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
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: Thu, 20 Jul 2006 19:57:00 -0000	[thread overview]
Message-ID: <u1wsghww9.fsf@gnu.org> (raw)
In-Reply-To: <200607201343.32483.vladimir@codesourcery.com> (message from 	Vladimir Prus on Thu, 20 Jul 2006 13:43:32 +0400)

> From: Vladimir Prus <vladimir@codesourcery.com>
> Date: Thu, 20 Jul 2006 13:43:32 +0400
> 
> This patch finishes the flash support work by adding documentation for all new
> packets, and by describing the format of XML memory map used in the remote 
> protocol.

Thanks.  My comments are below.

>              @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.

> +Direct the stub to write data to flash address @var{addr}.  The data
> +is passed binary form using the same encoding as for the @samp{X}
      ^^^^^^^^^^^^^^^^^^
You meant "passed IN binary form", right?

>                                  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?

>                                  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.

> +@item E.memtype
> +for vFlashWrite addressing non-flash memory

What is "E.memtype"? is it a literal string?

> +@table @samp
> +@item qXfer:memory-map:read::@var{offset},@var{length}
> +@anchor{qXfer memory map read}
> +Access the target's @dfn{memory-map}.  @xref{Memory map format}. The
                                                                  ^^^
Two spaces here, please.

> +@var{annex} must be empty.

There's no @var{annex} in the @item that gives the packet's syntax.

> +by suppling an appropriate @samp{qSupported} response (@pxref{qSupported}).
      ^^^^^^^^
A typo.

> +@node Memory map format
> +@section Memory map format
> +@cindex Memory map format

Please start @cindex entries with a lower-case letter.

> +lists memory regions. The top-level structure of the document is shown below:
                       ^^^
Need two spaces here.

> +@example

Please use @smallexample everywhere.

> +@itemize
> +
> +@item A region of RAM starting at @var{addr} and extending for @var{length}

An @item in an @itemize list should be alone on its line; the text
should start on the following line, like this:

  @item
  A region of RAM starting at @var{addr} and extending ...

> +<memory type="ram" start="addr" length="length"/>

Shouldn't this end with "/memory>"?

> +@example
> +<memory type="rom" start="addr" length="length"/>
> +@end example
> +
> +
> +@item A region of flash memory, with erasure blocks @var{blocksize}
> +bytes in length:
> +
> +@example
> +<memory type="flash" start="addr" length="length">
> +  <property name="blocksize">blocksize</property>
> +</memory>
> +@end example

The "addr", "blocksize" and "length" here refer to the values of
@var{addr}, @var{blocksize}, etc., right?  If so, you should use @var
in them.

> +Regions must not overlap. @value{GDBN} assumes that areas of memory not covered
                          ^^^^
Two spaces.

> +@example
> +<!-- ............................................................... -->
> +<!-- Memory Map XML DTD ............................................ -->
> +<!-- File: memory-map.dtd .......................................... -->
> +<!-- ............................................................... -->

Please make these lines shorter: they will overflow the page margins,
even with @smallexample, since TeX doesn't hyphenate inside @example.
In general, anything longer than 64 characters in a @smallexample is
bad.


  reply	other threads:[~2006-07-20 19:57 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 [this message]
2006-07-21 12:04   ` Vladimir Prus
2006-07-21 15:33     ` Eli Zaretskii
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=u1wsghww9.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