Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Metzger, Markus T" <markus.t.metzger@intel.com>
Cc: jan.kratochvil@redhat.com, gdb-patches@sourceware.org
Subject: Re: [PATCH 3/3] doc, record: document record changes
Date: Fri, 01 Mar 2013 14:26:00 -0000	[thread overview]
Message-ID: <83vc9burfw.fsf@gnu.org> (raw)
In-Reply-To: <A78C989F6D9628469189715575E55B2307B8743A@IRSMSX102.ger.corp.intel.com>

> From: "Metzger, Markus T" <markus.t.metzger@intel.com>
> CC: "jan.kratochvil@redhat.com" <jan.kratochvil@redhat.com>,
> 	"gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
> Date: Fri, 1 Mar 2013 14:06:23 +0000
> 
> > > +"record function-call-history" prints the names of the functions
> > > +from instructions stored in the execution log.
> > 
> > "prints the names of the functions called by instructions in the
> > execution log"
> 
> I'm not sure whether "called" is the right term. The algorithm walks over
> all instructions and collects the functions from which these instructions
> originated.
> 
> Example:
> 
> 1  void foo (void)
> 2 {
> 3    ...
> 4    bar ();
> 5    ...
> 6  }
> 
> When we record the execution of foo, there will be instructions for the
> first ..., then instructions for bar, and then instructions for the second ....
> 
> The "record function-call-history" will print:
>   foo.c:1-4	foo (void)
>   bar.c:8-12	bar (void)
>   foo.c:5-6	foo (void

This indicates that "record function-execution-history" might be a
better name.  But in any case, weren't 'bar' and 'foo' called in this
example?

Your original text, "prints the names of the functions from
instructions", is confusing, since instructions don't store function
names, they store addresses and numbers.

> > > +@kindex show record full memory-query
> > > +@item show record full memory-query
> > 
> > I think it is good enough to have only one "@kindex set record" and
> > one "@kindex show record" entry (which you already have at the
> > beginning of this description), without the entries that advertise the
> > rest of the command arguments.  These varieties are all described
> > together, so the multitude of index entries does not have any useful
> > effect, it just bloats the index.
> 
> I just renamed the text for existing indices. Do you still want me to
> merge them?

Can you give one example of such renaming?  I'm not sure I understand
what you did.

> > > +@item record function-call-history
> > > +Print function names for instructions stored in the recorded execution
> > > +log.  Prints one line for each sequence of instructions that is
> > > +correlated to the same function.
> > 
> > Isn't the last sentence equivalent to saying
> > 
> >   Prints one line for each function call in the execution log.
> > 
> > ?  If it is equivalent, I think my suggested wording is more clear and
> > less technical.
> 
> See above.

Given the example (which I think it would be good to have in the
manual), I suggest this wording instead:

  Prints one line for each sequence of instructions that all belong to
  the same function.


  reply	other threads:[~2013-03-01 14:26 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-25 16:15 [PATCH 0/3] target record-btrace markus.t.metzger
2013-02-25 16:16 ` [PATCH 3/3] doc, record: document record changes markus.t.metzger
2013-02-26 17:24   ` Eli Zaretskii
2013-03-01 14:07     ` Metzger, Markus T
2013-03-01 14:26       ` Eli Zaretskii [this message]
2013-03-01 14:48         ` Metzger, Markus T
2013-03-01 15:12           ` Eli Zaretskii
2013-03-01 15:21             ` Metzger, Markus T
2013-03-02  9:46               ` Eli Zaretskii
2013-02-25 16:16 ` [PATCH 2/3] record-btrace, disas: omit pc prefix markus.t.metzger
2013-02-27  7:59   ` Jan Kratochvil
2013-02-28  7:45     ` Metzger, Markus T
2013-02-28  7:56       ` Jan Kratochvil
2013-02-28  8:45         ` Metzger, Markus T
2013-02-28  8:54           ` Jan Kratochvil
2013-02-25 16:16 ` [PATCH 1/3] record, btrace: add record-btrace target markus.t.metzger
2013-02-27  7:38   ` Jan Kratochvil
2013-02-27 19:43     ` Jan Kratochvil
2013-02-28 17:17     ` Metzger, Markus T
2013-03-01  9:26       ` Jan Kratochvil

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=83vc9burfw.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=jan.kratochvil@redhat.com \
    --cc=markus.t.metzger@intel.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