This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: examining floating point data with 'print' on non floating point kernel
- From: Daniel Jacobowitz <drow at false dot org>
- To: Claudia Salzberg <salzberg at us dot ibm dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Thu, 14 Jul 2005 21:16:27 -0400
- Subject: Re: examining floating point data with 'print' on non floating point kernel
- References: <OF2B7A7E59.DD462760-ON8725703F.0003F611-8625703F.00064041@us.ibm.com>
On Thu, Jul 14, 2005 at 08:08:22PM -0500, Claudia Salzberg wrote:
> Hi,
>
> I am trying to use the 'print' command on a function declared in the
> program being debugged. This function takes in 10 values and prints them
> with a printf(%f). The program prints the values correctly if run
> independently of gdb. If the program is run on gdb normally (meaning with
> just run) they also print correctly. However, when called with the print
> command the output is unexpected and it prints either 0.00000 or nan where
> the various floating point values should be. This works fine on a power 3
> ppc box but does not work on the 440GP.
This means that your 440GP installation is using a different floating
point model than GDB thinks it is.
--
Daniel Jacobowitz
CodeSourcery, LLC