diff options
author | Maciej W. Rozycki <macro@embecosm.com> | 2022-06-29 15:27:41 +0100 |
---|---|---|
committer | Maciej W. Rozycki <macro@embecosm.com> | 2022-06-29 15:27:41 +0100 |
commit | 575fd4cffd05be7bd56112afa8688201d70d3043 (patch) | |
tree | 6ebcf489cdcdc97800f5afb5fedba46069f87ae5 /gdb/cli | |
parent | 6c0fe6d8f963eee3da16bf4895b1c592596240ff (diff) | |
download | fsf-binutils-gdb-575fd4cffd05be7bd56112afa8688201d70d3043.zip fsf-binutils-gdb-575fd4cffd05be7bd56112afa8688201d70d3043.tar.gz fsf-binutils-gdb-575fd4cffd05be7bd56112afa8688201d70d3043.tar.bz2 |
GDB: Remove extraneous full stops from `set' command error messages
With errors given for bad commands such as `set annotate' or `set width'
we produce an extraneous full stop within parentheses:
(gdb) set annotate
Argument required (integer to set it to.).
(gdb) set width
Argument required (integer to set it to, or "unlimited".).
(gdb)
This is grammatically incorrect, so remove the full stop and adjust the
testsuite accordingly.
Diffstat (limited to 'gdb/cli')
-rw-r--r-- | gdb/cli/cli-setshow.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/cli/cli-setshow.c b/gdb/cli/cli-setshow.c index 213573e..139ebaf 100644 --- a/gdb/cli/cli-setshow.c +++ b/gdb/cli/cli-setshow.c @@ -195,9 +195,9 @@ parse_cli_var_uinteger (var_types var_type, const char **arg, if (*arg == nullptr || **arg == '\0') { if (var_type == var_uinteger) - error_no_arg (_("integer to set it to, or \"unlimited\".")); + error_no_arg (_("integer to set it to, or \"unlimited\"")); else - error_no_arg (_("integer to set it to.")); + error_no_arg (_("integer to set it to")); } if (var_type == var_uinteger && is_unlimited_literal (arg, expression)) @@ -228,7 +228,7 @@ parse_cli_var_zuinteger_unlimited (const char **arg, bool expression) LONGEST val; if (*arg == nullptr || **arg == '\0') - error_no_arg (_("integer to set it to, or \"unlimited\".")); + error_no_arg (_("integer to set it to, or \"unlimited\"")); if (is_unlimited_literal (arg, expression)) val = -1; @@ -418,9 +418,9 @@ do_set_command (const char *arg, int from_tty, struct cmd_list_element *c) if (*arg == '\0') { if (c->var->type () == var_integer) - error_no_arg (_("integer to set it to, or \"unlimited\".")); + error_no_arg (_("integer to set it to, or \"unlimited\"")); else - error_no_arg (_("integer to set it to.")); + error_no_arg (_("integer to set it to")); } if (c->var->type () == var_integer && is_unlimited_literal (&arg, true)) |