diff options
author | Philippe Waroquiers <philippe.waroquiers@skynet.be> | 2018-06-04 23:21:00 +0200 |
---|---|---|
committer | Philippe Waroquiers <philippe.waroquiers@skynet.be> | 2018-06-14 22:28:39 +0200 |
commit | 87a8eca781910ec2079426f309145be18df8106c (patch) | |
tree | b719387beef786e66538a80714d616f4602cc8db /gdb/cli/cli-script.c | |
parent | 0dbfed25e9d4a01ea3f57b76d77ffbd8c066de0d (diff) | |
download | gdb-87a8eca781910ec2079426f309145be18df8106c.zip gdb-87a8eca781910ec2079426f309145be18df8106c.tar.gz gdb-87a8eca781910ec2079426f309145be18df8106c.tar.bz2 |
Fix/improve on-line help of 'define' command.
There is an inconsistency between the doc and the online help.
=> the doc is correct, so fixing/improving the on-line help.
2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
* cli/cli-script.c (_initialize_cli_script): Fix online documentation
of 'define' command.
Diffstat (limited to 'gdb/cli/cli-script.c')
-rw-r--r-- | gdb/cli/cli-script.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c index 72de8ec..87ebf9f 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\ |