This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH Bug breakpoints/14381] Fix linespec to parse file name that begin with decimal numbers
>>>>> ">" == Hui Zhu <teawater@gmail.com> writes:
>> The string begin with a number is not a error, why handle it as a
>> error? I think that will really make this part obfuscates.
>> What I thought is change the function name to
>> linespec_lexer_lex_number_string to make it clear.
How about changing linespec_lexer_lex_number to return a boolean
indicating whether it succeeded? This is basically the same idea, but
without introducing a new token.
Tom