🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #10092

gdb 3.5 is_nan bug

#10092
From: Jay Norwood
Date: Tue, 31 Jul 1990 20:33
7 lines
988 bytes
The is_nan function in valprint.c of gdb 3.5 incorrectly tests
for the double precision NaN. In the last line of the function, the
expression (highhalf & 0xfffff == 0) needs to be changed to
((highhalf & 0xfffff) == 0) in order for the evaluation of the
expression to be valid.  As it is now, double precision Inf will
print as NaN as a result of is_nan returning true for the test.
Jay Norwood
Technical Details
Message-ID: <9007312033.AA18288@ray.sun.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!CS.UTEXAS.EDU!oakhill!ray!jay

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5053,1304171f3a35b6b1,start
X-Google-Attributes: gidf5053,public
X-Google-ArrivalTime: 1990-07-31 13:33:32 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!CS.UTEXAS.EDU!oakhill!ray!jay
From: oakhill!ray!jay@CS.UTEXAS.EDU (Jay Norwood)
Newsgroups: gnu.gdb.bug
Subject: gdb 3.5 is_nan bug
Message-ID: <9007312033.AA18288@ray.sun.com>
Date: 31 Jul 90 20:33:32 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 7
Posted: Tue Jul 31 21:33:32 1990