diff options
author | mbilal <mbilal> | 2013-04-24 14:29:17 +0000 |
---|---|---|
committer | mbilal <mbilal> | 2013-04-24 14:29:17 +0000 |
commit | e40163f78b1c283325520ff1d2eec78cc06ef278 (patch) | |
tree | f069538cfdf6acdeeea84280e18921d5bc44360f /gdb/cli | |
parent | 5cea280c6df6c447c2fb32d01e2b6e0a0d178a5f (diff) | |
download | gdb-e40163f78b1c283325520ff1d2eec78cc06ef278.tar.gz |
2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
PR gdb/10462
* cli/cli-decode.c (lookup_command): Show an error if there is no space
before argument.
2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
PR gdb/10462
* gdb.base/setshow.exp: Add test case.
Diffstat (limited to 'gdb/cli')
-rw-r--r-- | gdb/cli/cli-decode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c index 9bc14b5dbfd..2fdd9e4a25c 100644 --- a/gdb/cli/cli-decode.c +++ b/gdb/cli/cli-decode.c @@ -1556,6 +1556,9 @@ lookup_cmd (const char **line, struct cmd_list_element *list, char *cmdtype, } else { + if (c->type == set_cmd && **line != '\0' && !isspace (**line)) + error (_("Argument must be preceded by space.")); + /* We've got something. It may still not be what the caller wants (if this command *needs* a subcommand). */ while (**line == ' ' || **line == '\t') |