by quotes is a valid number, too.
* gdb.linespec/ls-errs.exp: Check some quote-enclosed
linespecs.
+2012-07-30 Keith Seitz <keiths@redhat.com>
+
+ * linespec.c (linespec_lexer_lex_number): A number followed
+ by quotes is a valid number, too.
+
2012-07-26 Keith Seitz <keiths@redhat.com>
* linespec.c (linespec_lexer_lex_number): The input
}
/* If the next character in the input buffer is not a space, comma,
- or colon, the input does not represent a number. */
+ quote, or colon, the 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;
+2012-07-30 Keith Seitz <keiths@redhat.com>
+
+ * gdb.linespec/ls-errs.exp: Check some quote-enclosed
+ linespecs.
+
2012-07-30 Doug Evans <dje@google.com>
* gdb.dwarf2/fission-reread.S: Use .data instead of .bss.
foreach x $invalid_offsets {
add the_tests "$srcfile:$x" invalid_offset_f $x $srcfile
+ add the_tests "\"$srcfile:$x\"" invalid_offset_f $x $srcfile
+ add the_tests "'$srcfile:$x'" invalid_offset_f $x $srcfile
}
# Test invalid filespecs starting with function.