Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] Fix/improve on-line help of 'define' command.
@ 2018-06-04 21:31 Philippe Waroquiers
  2018-06-12 21:58 ` Philippe Waroquiers
  2018-06-13 11:19 ` Simon Marchi
  0 siblings, 2 replies; 4+ messages in thread
From: Philippe Waroquiers @ 2018-06-04 21:31 UTC (permalink / raw)
  To: gdb-patches; +Cc: Philippe Waroquiers

While I was playing with 'define' to understand how some quoting was
done (or not done), I found an inconsistency between the doc
and the online help.
=> the doc is correct, so fixing/improving the on-line help.

2018-06-04  Philippe Waroquiers  <philippe.waroquiers@skynet.be>

	* cli/cli-script.c (_initialize_cli_script): Fix online documentation
        of 'define' command.
---
 gdb/cli/cli-script.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c
index 72de8ec1c7..8ceecdf435 100644
--- a/gdb/cli/cli-script.c
+++ b/gdb/cli/cli-script.c
@@ -1602,7 +1602,8 @@ Define a new command name.  Command name is argument.\n\
 Definition appears on following lines, one command per line.\n\
 End with a line of just \"end\".\n\
 Use the \"document\" command to give documentation for the new command.\n\
-Commands defined in this way may have up to ten arguments."));
+Commands defined in this way may accept an unlimited number of arguments\n\
+accessed via $arg0 .. $argN. $argc tells how many arguments have been passed."));
 
   add_com ("while", class_support, while_command, _("\
 Execute nested commands WHILE the conditional expression is non zero.\n\
-- 
2.11.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [RFA] Fix/improve on-line help of 'define' command.
  2018-06-04 21:31 [RFA] Fix/improve on-line help of 'define' command Philippe Waroquiers
@ 2018-06-12 21:58 ` Philippe Waroquiers
  2018-06-13 11:19 ` Simon Marchi
  1 sibling, 0 replies; 4+ messages in thread
From: Philippe Waroquiers @ 2018-06-12 21:58 UTC (permalink / raw)
  To: gdb-patches

Ping ?

On Mon, 2018-06-04 at 23:31 +0200, Philippe Waroquiers wrote:
> While I was playing with 'define' to understand how some quoting was
> done (or not done), I found an inconsistency between the doc
> and the online help.
> => the doc is correct, so fixing/improving the on-line help.
> 
> 2018-06-04  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
> 
> 	* cli/cli-script.c (_initialize_cli_script): Fix online documentation
>         of 'define' command.
> ---
>  gdb/cli/cli-script.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c
> index 72de8ec1c7..8ceecdf435 100644
> --- a/gdb/cli/cli-script.c
> +++ b/gdb/cli/cli-script.c
> @@ -1602,7 +1602,8 @@ Define a new command name.  Command name is argument.\n\
>  Definition appears on following lines, one command per line.\n\
>  End with a line of just \"end\".\n\
>  Use the \"document\" command to give documentation for the new command.\n\
> -Commands defined in this way may have up to ten arguments."));
> +Commands defined in this way may accept an unlimited number of arguments\n\
> +accessed via $arg0 .. $argN. $argc tells how many arguments have been passed."));
>  
>    add_com ("while", class_support, while_command, _("\
>  Execute nested commands WHILE the conditional expression is non zero.\n\


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [RFA] Fix/improve on-line help of 'define' command.
  2018-06-04 21:31 [RFA] Fix/improve on-line help of 'define' command Philippe Waroquiers
  2018-06-12 21:58 ` Philippe Waroquiers
@ 2018-06-13 11:19 ` Simon Marchi
  2018-06-14 20:31   ` Philippe Waroquiers
  1 sibling, 1 reply; 4+ messages in thread
From: Simon Marchi @ 2018-06-13 11:19 UTC (permalink / raw)
  To: Philippe Waroquiers, gdb-patches

On 2018-06-04 05:31 PM, Philippe Waroquiers wrote:
> While I was playing with 'define' to understand how some quoting was
> done (or not done), I found an inconsistency between the doc
> and the online help.
> => the doc is correct, so fixing/improving the on-line help.
> 
> 2018-06-04  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
> 
> 	* cli/cli-script.c (_initialize_cli_script): Fix online documentation
>         of 'define' command.
> ---
>  gdb/cli/cli-script.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c
> index 72de8ec1c7..8ceecdf435 100644
> --- a/gdb/cli/cli-script.c
> +++ b/gdb/cli/cli-script.c
> @@ -1602,7 +1602,8 @@ Define a new command name.  Command name is argument.\n\
>  Definition appears on following lines, one command per line.\n\
>  End with a line of just \"end\".\n\
>  Use the \"document\" command to give documentation for the new command.\n\
> -Commands defined in this way may have up to ten arguments."));
> +Commands defined in this way may accept an unlimited number of arguments\n\
> +accessed via $arg0 .. $argN. $argc tells how many arguments have been passed."));

Two spaces after period, keep the length <= 80 columns.  Otherwise, LGTM.

Simon


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [RFA] Fix/improve on-line help of 'define' command.
  2018-06-13 11:19 ` Simon Marchi
@ 2018-06-14 20:31   ` Philippe Waroquiers
  0 siblings, 0 replies; 4+ messages in thread
From: Philippe Waroquiers @ 2018-06-14 20:31 UTC (permalink / raw)
  To: Simon Marchi, gdb-patches

On Wed, 2018-06-13 at 07:19 -0400, Simon Marchi wrote:
> On 2018-06-04 05:31 PM, Philippe Waroquiers wrote:
> > While I was playing with 'define' to understand how some quoting was
> > done (or not done), I found an inconsistency between the doc
> > and the online help.
> > => the doc is correct, so fixing/improving the on-line help.
> > 
> > 2018-06-04  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
> > 
> > 	* cli/cli-script.c (_initialize_cli_script): Fix online documentation
> >         of 'define' command.
> > ---
> >  gdb/cli/cli-script.c | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> > 
> > diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c
> > index 72de8ec1c7..8ceecdf435 100644
> > --- a/gdb/cli/cli-script.c
> > +++ b/gdb/cli/cli-script.c
> > @@ -1602,7 +1602,8 @@ Define a new command name.  Command name is argument.\n\
> >  Definition appears on following lines, one command per line.\n\
> >  End with a line of just \"end\".\n\
> >  Use the \"document\" command to give documentation for the new command.\n\
> > -Commands defined in this way may have up to ten arguments."));
> > +Commands defined in this way may accept an unlimited number of arguments\n\
> > +accessed via $arg0 .. $argN. $argc tells how many arguments have been passed."));
> 
> Two spaces after period, keep the length <= 80 columns.  Otherwise, LGTM.
Thanks.
I fixed the 2 things above, and pushed the below.
Philippe

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8150685e5c..60766ca777 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2018-06-14  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+
+       * cli/cli-script.c (_initialize_cli_script): Fix online documentation
+       of 'define' command.
+
 2018-06-14  Tom de Vries  <tdevries@suse.de>
 
        PR cli/22573
diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c
index 72de8ec1c7..87ebf9fc00 100644
--- a/gdb/cli/cli-script.c
+++ b/gdb/cli/cli-script.c
@@ -1602,7 +1602,9 @@ Define a new command name.  Command name is argument.\n\
 Definition appears on following lines, one command per line.\n\
 End with a line of just \"end\".\n\
 Use the \"document\" command to give documentation for the new command.\n\
-Commands defined in this way may have up to ten arguments."));
+Commands defined in this way may accept an unlimited number of arguments\n\
+accessed via $arg0 .. $argN.  $argc tells how many arguments have\n\
+been passed."));
 
   add_com ("while", class_support, while_command, _("\
 Execute nested commands WHILE the conditional expression is non zero.\n\



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-06-14 20:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-04 21:31 [RFA] Fix/improve on-line help of 'define' command Philippe Waroquiers
2018-06-12 21:58 ` Philippe Waroquiers
2018-06-13 11:19 ` Simon Marchi
2018-06-14 20:31   ` Philippe Waroquiers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox