From: Enze Li <enze.li@hotmail.com>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: Enze Li via Gdb-patches <gdb-patches@sourceware.org>, enze.li@gmx.com
Subject: Re: [PATCH] gdb: add a numeric check after the exponent (PR cli/24124)
Date: Sun, 04 Sep 2022 18:01:17 +0800 [thread overview]
Message-ID: <OS3P286MB21529638ADB06CB8AFB8943BF07C9@OS3P286MB2152.JPNP286.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <87leqzzg1o.fsf@linux-m68k.org> (Andreas Schwab's message of "Sun, 04 Sep 2022 10:42:43 +0200")
On Sun, Sep 04, 2022 at 10:42:43 AM +0200, Andreas Schwab wrote:
> On Sep 04 2022, Enze Li via Gdb-patches wrote:
>
>> diff --git a/gdb/c-exp.y b/gdb/c-exp.y
>> index 61a61fcba09c..b13de967b1b6 100644
>> --- a/gdb/c-exp.y
>> +++ b/gdb/c-exp.y
>> @@ -2769,7 +2769,8 @@ lex_one_token (struct parser_state *par_state, bool *is_quoted_name)
>> /* This test includes !hex because 'e' is a valid hex digit
>> and thus does not indicate a floating point number when
>> the radix is hex. */
>> - if (!hex && !got_e && !got_p && (*p == 'e' || *p == 'E'))
>> + if (!hex && !got_e && !got_p && (*p == 'e' || *p == 'E')
>> + && p[1] >= '0' && p[1] <= '9')
>
> 'e' can be followed by a signed number.
Oops, I didn't metion that. Thank you for reminding me.
I'll soon update this patch in current thread.
Thanks,
Enze
next prev parent reply other threads:[~2022-09-04 10:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-04 8:36 Enze Li
2022-09-04 8:42 ` Andreas Schwab
2022-09-04 10:01 ` Enze Li [this message]
2022-09-05 13:57 ` [PATCH v2] " Enze Li
2022-09-21 18:12 ` Tom Tromey
2022-09-22 14:09 ` Enze Li
2022-09-23 13:47 ` Tom Tromey
2022-10-02 12:15 ` Enze Li
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=OS3P286MB21529638ADB06CB8AFB8943BF07C9@OS3P286MB2152.JPNP286.PROD.OUTLOOK.COM \
--to=enze.li@hotmail.com \
--cc=enze.li@gmx.com \
--cc=gdb-patches@sourceware.org \
--cc=schwab@linux-m68k.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).