public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* Re: gdb/2370: print/display of float value with infinity is shown as zero (x86-64?)
@ 2007-11-28 18:16 drow
0 siblings, 0 replies; 2+ messages in thread
From: drow @ 2007-11-28 18:16 UTC (permalink / raw)
To: gdb-prs, greg.reynolds, nobody
Synopsis: print/display of float value with infinity is shown as zero (x86-64?)
State-Changed-From-To: open->closed
State-Changed-By: drow
State-Changed-When: Wed Nov 28 18:16:25 2007
State-Changed-Why:
This was fixed in GDB 6.7.
http://sourceware.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=2370
^ permalink raw reply [flat|nested] 2+ messages in thread
* gdb/2370: print/display of float value with infinity is shown as zero (x86-64?)
@ 2007-11-28 15:58 greg.reynolds
0 siblings, 0 replies; 2+ messages in thread
From: greg.reynolds @ 2007-11-28 15:58 UTC (permalink / raw)
To: gdb-gnats
>Number: 2370
>Category: gdb
>Synopsis: print/display of float value with infinity is shown as zero (x86-64?)
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Nov 28 15:58:01 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator: greg.reynolds@arithmatica.com
>Release: GNU gdb Red Hat Linux (6.5-15.fc6rh)
>Organization:
>Environment:
Linux turing 2.6.22.2-42.fc6 #1 SMP Wed Aug 15 11:52:47 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
gcc version 4.1.2 20070626 (Red Hat 4.1.2-13)
This GDB was configured as "x86_64-redhat-linux-gnu"
>Description:
Floating point variables with value "Inf" are incorrectly reported as having value "0" when examined in the debugger.
>How-To-Repeat:
In C++ program,
float x = std::numeric_limits<float>::infinity();
Then in gdb:
(gdb) p x
$1 = 0
but if you do
(gdb) p /x *(int*)&x
$2 = 0x7f800000
Does not appear to happen on 32-bit version.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-11-28 18:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-28 18:16 gdb/2370: print/display of float value with infinity is shown as zero (x86-64?) drow
-- strict thread matches above, loose matches on Subject: below --
2007-11-28 15:58 greg.reynolds
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).