Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Hui Zhu <teawater@gmail.com>
Cc: hui_zhu@mentor.com, gdb-patches@sourceware.org, stan_shebs@mentor.com
Subject: Re: [PATCH] target attributes [5/5] doc
Date: Thu, 25 Oct 2012 17:31:00 -0000	[thread overview]
Message-ID: <83mwzaa27c.fsf@gnu.org> (raw)
In-Reply-To: <CANFwon2OmfvM1JyRs_YTfksH_9vGwNKHDurOTE9ceiargz=MLQ@mail.gmail.com>

> From: Hui Zhu <teawater@gmail.com>
> Date: Sun, 2 Sep 2012 19:20:01 +0800
> Cc: Hui Zhu <hui_zhu@mentor.com>, gdb-patches@sourceware.org, stan_shebs@mentor.com
> 
> Oops.  I am so sorry that I post a old version of this patch.  So
> sorry about that.
> The attachment is the right version.  Please help me with it.

Sorry for the long delay.

> +@kindex maint load-target-attributes
> +@item maint load-target-attributes @var{filename}
> +Load @ref{Target Attributes} from an XML file.

Please don't let @ref serve double duty, it looks ugly in the manual.
Something like this is better:

  Load target attributes (@pxref{Target Attributes}) from an XML file.

> +@kindex maint clear-target-attributes
> +@item maint clear-target-attributes
> +Remove all @ref{Target Attributes}.

Same here.

> +@smallexample
> +<target-attributes>
> +	<target-attribute name="foo" id="1" type="int8" >
> +		<access>
> +			<agent read="yes" write="no"/>
> +			<gdb write="yes" read="yes"/>
> +		</access>
> +		<support software-breakpoint="yes" hardware-breakpoint="yes" hardware-watchpoint="yes" tracepoint="yes"/>
> +		<addresses>
> +			<address start="0x123" end="0x456" />
> +			<address start="0x789" end="0x1111" />
> +		</addresses>
> +	</target-attribute>
> +	<target-attribute name="bar" id="2" type="int32" target-only-cond-check="yes">
> +		<access>
> +			<agent read="yes" write="no"/>
> +			<gdb read="yes"/>
> +		</access>
> +		<support software-breakpoint="yes" hardware-breakpoint="yes" tracepoint="yes"/>
> +	</target-attribute>
> +</target-attributes>
> +@end smallexample

A few lines in this @smallexample will overflow the page dimensions;
please break them in two lines.

> +If @samp{target-only-cond-check} set to @samp{yes}, GDB will not check the
                                                       ^^^
@value{GDBN}

> +condition of breakpoint in its side.  If @samp{target-only-cond-check} not
> +define, it means @samp{no}.
   ^^^^^^
"defined"

> +@smallexample
> +<support software-breakpoint="yes" hardware-breakpoint="yes" hardware-watchpoint="yes" tracepoint="yes"/>
> +@end smallexample

Too long, please break into 2 lines.

> +This define the breakpoint address range that a target attribute can
        ^^^^^^
"defines"

> +be used in the condition or commands of the breakpoints that are
> +inside this address range.  If address is defined, this target
> +attribute supports any address. ^^^^^^^^^^^^^^^^^

Did you mean "not defined"?

> +Target attributes may be used in breakpoint conditions and actions,
> +as well as being included in expressions and print commands.  The
              ^^^^^
"be"

> +of all the breakpoints will reset to 0 when the inferior stops and
                          ^^^^^^^^^^
"will be reset"

> +@smallexample
> +(gdb) target remote :1234
> +Remote debugging using :1234
> +Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done.

This line is too long, please break it in 2.

OK with these changes.

Thanks.


  parent reply	other threads:[~2012-10-25 17:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-29  8:13 Hui Zhu
2012-08-31 19:25 ` Eli Zaretskii
2012-09-02 11:21   ` Hui Zhu
2012-10-24 17:18     ` Hui Zhu
2012-10-25 17:31     ` Eli Zaretskii [this message]
2012-10-31  3:32       ` Hui Zhu
2012-10-31 15:45         ` Eli Zaretskii
2012-11-21  8:51           ` Hui Zhu
2012-11-21 17:45             ` 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=83mwzaa27c.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=hui_zhu@mentor.com \
    --cc=stan_shebs@mentor.com \
    --cc=teawater@gmail.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