forked from Imagelibrary/binutils-gdb
* linespec.c (linespec_lex_number): A number followed
by quotes is a valid number, too. * gdb.linespec/ls-errs.exp: Check some quote-enclosed linespecs.
This commit is contained in:
@@ -391,10 +391,11 @@ linespec_lexer_lex_number (linespec_parser *parser, linespec_token *tokenp)
|
||||
}
|
||||
|
||||
/* If the next character in the input buffer is not a space, comma,
|
||||
or colon, this input does not represent a number. */
|
||||
quote, or colon, this input does not represent a number. */
|
||||
if (*PARSER_STREAM (parser) != '\0'
|
||||
&& !isspace (*PARSER_STREAM (parser)) && *PARSER_STREAM (parser) != ','
|
||||
&& *PARSER_STREAM (parser) != ':')
|
||||
&& *PARSER_STREAM (parser) != ':'
|
||||
&& !strchr (linespec_quote_characters, *PARSER_STREAM (parser)))
|
||||
{
|
||||
PARSER_STREAM (parser) = LS_TOKEN_STOKEN (*tokenp).ptr;
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user