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: tromey@redhat.com, gdb-patches@sourceware.org, dje@google.com,
	stan@codesourcery.com, msnyder@vmware.com
Subject: Re: [PATCH] tracepoint: add new trace command "printf"[3] doc
Date: Thu, 17 Feb 2011 14:40:00 -0000	[thread overview]
Message-ID: <E1Pq2EN-0004ac-Qe@fencepost.gnu.org> (raw)
In-Reply-To: <AANLkTingH93q9-j9dRBGX_qLctD6NYiSKYVyoPG44ENW@mail.gmail.com>	(message from Hui Zhu on Thu, 17 Feb 2011 16:13:11 +0800)

> From: Hui Zhu <teawater@gmail.com>
> Date: Thu, 17 Feb 2011 16:13:11 +0800
> Cc: Doug Evans <dje@google.com>, Stan Shebs <stan@codesourcery.com>, 
> 	Michael Snyder <msnyder@vmware.com>
> 
> This is the patch for the doc for the tracepoint command printf and
> agent op printf.

Thanks.

> +Print the values in the stack under the control of the string template.

"on the stack", not "in".

Also, you say "values" here, but the rest of the description talks
about one value at most.  Which one is right?

I would remove "the" before "control".

Finally, "template" should be in @var.

> +The end of @var{template} is 0x00.

Not clear what you mean here.  Do you mean that "template" is a
null-terminated string?

> +If @var{n} is 0, just output the string template.
> +If @var{n} is 1, pop a value from the stack and print it under the control
> +of the string template.

Same comments as above: remove "the" before "control" and put
"template" in @var.

> +@kindex printf

We already have one such @kindex entry.  Please change this one to

  @kindex printf, in tracepoint actions

> +@item printf @var{template}, @var{expressions}@dots{}
> +Print the values of one or more @var{expressions} under the control of

"under control", without "the".

> +the string @var{template} in @code{gdbserver} part.

I don't understand what do you mean by "in @code{gdbserver} part".

> +The command format is with simple @code{printf} (@pxref{Output, printf}).

Please rephrase as

  @var{template} is a format string of the same form as used with the
  @value{GDBN} command @code{printf} (@pxref{Output, printf}).

Thanks.


  reply	other threads:[~2011-02-17 11:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-17  8:15 Hui Zhu
2011-02-17 14:40 ` Eli Zaretskii [this message]
2011-02-17 16:20   ` Hui Zhu
2011-02-17 19:22     ` Eli Zaretskii
2011-02-21  8:21       ` Hui Zhu

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=E1Pq2EN-0004ac-Qe@fencepost.gnu.org \
    --to=eliz@gnu.org \
    --cc=dje@google.com \
    --cc=gdb-patches@sourceware.org \
    --cc=msnyder@vmware.com \
    --cc=stan@codesourcery.com \
    --cc=teawater@gmail.com \
    --cc=tromey@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