public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug gdb/18318] Printing an hexadecimal floating constant with negative exponent gives wrong result Date: Thu, 11 Jun 2020 16:35:53 +0000 [thread overview] Message-ID: <bug-18318-4717-K6MZBVUalE@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-18318-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=18318 --- Comment #4 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Tom Tromey <tromey@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2b4e6a3f4b66284556254f548716c7b21b93524a commit 2b4e6a3f4b66284556254f548716c7b21b93524a Author: Tom Tromey <tom@tromey.com> Date: Thu Jun 11 10:34:31 2020 -0600 Fix hex floating point lexing PR gdb/18318 notes that gdb will sometimes incorrectly handle hex floating point input. This turns out to be a bug in the C lexer; the 'p' was not being correctly recognized, and so the exponent was not always passed to the floating point "from_string" method. Tested by the buildbot "Fedora-x86_64-m64" builder. gdb/ChangeLog 2020-06-11 Tom Tromey <tom@tromey.com> PR gdb/18318: * c-exp.y (lex_one_token): Handle 'p' like 'e'. gdb/testsuite/ChangeLog 2020-06-11 Tom Tromey <tom@tromey.com> PR gdb/18318: * gdb.base/printcmds.exp (test_float_accepted): Add more hex floating point tests. -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2020-06-11 16:35 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-04-24 13:38 [Bug gdb/18318] New: " olivier.gay at a3 dot epfl.ch 2015-04-24 13:40 ` [Bug gdb/18318] " olivier.gay at a3 dot epfl.ch 2015-04-24 14:07 ` huguesdelassus at hotmail dot fr 2015-04-24 15:35 ` huguesdelassus at hotmail dot fr 2020-06-06 15:35 ` tromey at sourceware dot org 2020-06-11 16:35 ` cvs-commit at gcc dot gnu.org [this message] 2020-06-11 16:37 ` tromey at sourceware dot org
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=bug-18318-4717-K6MZBVUalE@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.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: linkBe 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).