[PATCH v2] gdb: add a numeric check after the exponent (PR cli/24124)
Tom Tromey
tom@tromey.com
Fri Sep 23 13:47:51 GMT 2022
>>>>> "Enze" == Enze Li via Gdb-patches <gdb-patches@sourceware.org> writes:
>> I suspect the change has to be in c-exp.y:parse_number, in order to
>> support the case where the input radix is 16. In this situation,
Enze> ^^
Enze> Sorry, I didn't get that. Shouldn't this radix be 10?
No, what I mean is:
(gdb) set input-radix 16
Input radix now set to decimal 16, hex 10, octal 20.
(gdb) print 80e
$1 = 2062
I think with your patch this will issue an error.
Enze> In addition, do these test cases below meet expectations?
They seem fine to me.
Tom
More information about the Gdb-patches
mailing list