From: Eli Zaretskii <eliz@gnu.org>
To: Ari Hannula <ari.hannula@intel.com>
Cc: gdb-patches@sourceware.org, tim.wiederhake@intel.com
Subject: Re: [PATCH v3 2/2] [func_call] Add function-call-history command to MI.
Date: Wed, 06 Jul 2022 16:51:31 +0300 [thread overview]
Message-ID: <83a69m73j0.fsf@gnu.org> (raw)
In-Reply-To: <20220706133639.114681-3-ari.hannula@intel.com> (message from Ari Hannula via Gdb-patches on Wed, 6 Jul 2022 15:36:39 +0200)
> Date: Wed, 6 Jul 2022 15:36:39 +0200
> From: Ari Hannula via Gdb-patches <gdb-patches@sourceware.org>
> Cc: Tim Wiederhake <tim.wiederhake@intel.com>
>
> From: Tim Wiederhake <tim.wiederhake@intel.com>
>
> This allows MI clients like Eclipse to retrieve the function call history.
>
> Changes the output of the command. Previously it returned a tuple of
> tuples, and now returns a list of tuples.
>
> MI response was fixed to follow MI syntax, e.g.
>
> "insn history" or "func history" -> "call-history"
> "insn begin" -> "insn-begin"
> "insn end" -> "insn-end"
> "min line" -> "min-line"
> "max line" -> "max-line"
>
> Adds documentation for the command.
>
> Adds tests for the command.
>
> Signed-off-by: Tim Wiederhake <tim.wiederhake@intel.com>
> Signed-off-by: Ari Hannula <ari.hannula@intel.com>
> ---
> gdb/doc/gdb.texinfo | 98 +++++++++++++++++++
> gdb/mi/mi-cmd-record.c | 53 +++++++++-
> gdb/mi/mi-cmd-record.h | 5 +
> gdb/mi/mi-cmds.c | 1 +
> gdb/mi/mi-cmds.h | 1 +
> gdb/record-btrace.c | 22 +++--
> gdb/record.c | 28 +++---
> gdb/record.h | 18 ++++
> .../gdb.mi/mi-function_call_history.exp | 95 ++++++++++++++++++
> 9 files changed, 298 insertions(+), 23 deletions(-)
Thanks.
> +@table @samp
> +@item index
> +The function number in control-flow order.
Will the reader understand the meaning of "control-flow order"? If
not, perhaps we should explain what that means.
> +@item level
> +The function level in a back trace across the entire branch trace.
^^^^^^^^^^
"backtrace", as one word.
> +@item file
> +Source file path and name.
^^^^^^^^^^^^^
GNU conventions frown on using "path" for anything but PATH-style
directory lists. Please use "filename" instead.
> +@item insn-begin
> +Instruction number range begin.
That's awkward English. Suggest to rephrase:
Beginning of the range of instruction numbers.
> +@item insn-end
> +Instruction number range end.
> +
> +@item min-line
> +Source line range begin.
> +
> +@item max-line
> +Source line range end.
Similarly here.
> +(gdb)
I believe we use @value{GDBP} instead of the literal "gdb" here.
Please see elsewhere in the manual how we do that.
The documentation part is OK with these nits fixed.
prev parent reply other threads:[~2022-07-06 13:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-06 13:36 [PATCH v3 0/2] Function call history patches (MI) Ari Hannula
2022-07-06 13:36 ` [PATCH v3 1/2] [func_call] Add function-call-history-length command to MI Ari Hannula
2022-07-06 13:45 ` Eli Zaretskii
2022-07-06 13:36 ` [PATCH v3 2/2] [func_call] Add function-call-history " Ari Hannula
2022-07-06 13:51 ` Eli Zaretskii [this message]
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=83a69m73j0.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=ari.hannula@intel.com \
--cc=gdb-patches@sourceware.org \
--cc=tim.wiederhake@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).