forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user