This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb/510: floating point NaN with libpthread on linux


The following reply was made to PR gdb/510; it has been noted by GNATS.

From: Bart Robinson <lomew@pobox.com>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: gdb-gnats@sources.redhat.com
Subject: Re: gdb/510: floating point NaN with libpthread on linux
Date: Fri, 26 Apr 2002 23:27:45 -0600 (MDT)

 Here is some shell output.  The rest of my environment info is
 in the bug report.  This is with gdb+dejagnu-20020419.  I also
 just tried gdb-5.1.92 from the branch area with the same
 results.
 
 Let me know if you have other ideas for me to try.
 
 Thanks
 -- bart
 
 ---------------------------------------------------------------------
 
 30 noriega:gdb+dejagnu-20020419.build/gdb/> cat gdbbug.c
 
 #include <stdio.h>
 main()
 {
   float f = 1.0;
   printf("f=%5.3f\n", f);
   printf("f=%5.3f\n", f);
   return 0;
 }
 
 31 noriega:gdb+dejagnu-20020419.build/gdb/> gcc -v
 
 Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
 gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
 
 32 noriega:gdb+dejagnu-20020419.build/gdb/> gcc gdbbug.c -lpthread
 
 33 noriega:gdb+dejagnu-20020419.build/gdb/> ./a.out
 
 f=1.000
 f=1.000
 
 34 noriega:gdb+dejagnu-20020419.build/gdb/> ./gdb --nx a.out
 
 GNU gdb 20020419
 Copyright 2002 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and you are
 welcome to change it and/or distribute copies of it under certain conditions.
 Type "show copying" to see the conditions.
 There is absolutely no warranty for GDB.  Type "show warranty" for details.
 This GDB was configured as "i686-pc-linux-gnu"...
 (gdb) r
 Starting program: /home/lomew/gdb+dejagnu-20020419.build/gdb/a.out
 [New Thread 1024 (runnable)]
 f=  nan
 f=1.000
 
 Program exited normally.
 (gdb) q
 
 35 noriega:gdb+dejagnu-20020419.build/gdb/> 
 ---------------------------------------------------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]