From: Eli Zaretskii via Gdb-patches <gdb-patches@sourceware.org>
To: Philippe Waroquiers <philippe.waroquiers@skynet.be>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFAv2] Allow to document user-defined aliases.
Date: Tue, 09 Aug 2022 14:50:16 +0300 [thread overview]
Message-ID: <83bkstvdon.fsf@gnu.org> (raw)
In-Reply-To: <20220808194018.3781686-1-philippe.waroquiers@skynet.be> (message from Philippe Waroquiers via Gdb-patches on Mon, 8 Aug 2022 21:40:18 +0200)
> Date: Mon, 8 Aug 2022 21:40:18 +0200
> From: Philippe Waroquiers via Gdb-patches <gdb-patches@sourceware.org>
>
> gdb/NEWS | 10 ++++++
> gdb/cli/cli-decode.c | 59 ++++++++++++++++++++++++---------
> gdb/cli/cli-script.c | 41 ++++++++++++++---------
> gdb/doc/gdb.texinfo | 26 ++++++++++++++-
> gdb/testsuite/gdb.base/help.exp | 44 ++++++++++++++++++++++--
> 5 files changed, 146 insertions(+), 34 deletions(-)
Thanks.
> diff --git a/gdb/NEWS b/gdb/NEWS
> index 8c837df76e5..1b74e0fc1bd 100644
> --- a/gdb/NEWS
> +++ b/gdb/NEWS
> @@ -93,6 +93,16 @@ show style disassembler symbol
>
> * Changed commands
>
> +document user-defined
> + It is now possible to document user-defined aliases.
> + When a user-defined alias is documented, the help and apropos commands
> + use the provided documentation instead of the documentation of the
> + aliased command.
> + Documenting a user-defined alias is particularly useful when the alias
> + is a set of nested 'with' commands to avoid showing the help of
> + the with command for an alias that will in fact launch the
> + last command given in the nested commands.
> +
This part is OK.
> +A user-defined alias can optionally be documented using the @code{document} command
> +(@pxref{Define, document}).
> +@value{GDBN} then considers this alias as different of the aliased
> +command:
"different from the aliased command", not "different of".
> this alias is not listed in the aliased command help output and asking
^
A comma missing there.
> +help for this alias will show the user provided alias documentation
> +instead of
"will show the documentation provided for the alias instead of..."
The documentation parts are OK with these nits fixed.
next prev parent reply other threads:[~2022-08-09 11:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-08 19:40 Philippe Waroquiers via Gdb-patches
2022-08-09 11:50 ` Eli Zaretskii via Gdb-patches [this message]
2022-08-14 14:07 ` Philippe Waroquiers via Gdb-patches
2022-08-21 12:06 ` Philippe Waroquiers via Gdb-patches
2022-08-23 19:33 ` Tom Tromey
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=83bkstvdon.fsf@gnu.org \
--to=gdb-patches@sourceware.org \
--cc=eliz@gnu.org \
--cc=philippe.waroquiers@skynet.be \
/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