From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: drow@false.org
Cc: salzberg@us.ibm.com, gdb@sources.redhat.com
Subject: Re: examining floating point data with 'print' on non floating point kernel
Date: Fri, 15 Jul 2005 18:09:00 -0000 [thread overview]
Message-ID: <200507151809.j6FI97ee000621@elgar.sibelius.xs4all.nl> (raw)
In-Reply-To: <20050715011627.GA25003@nevyn.them.org> (message from Daniel Jacobowitz on Thu, 14 Jul 2005 21:16:27 -0400)
Date: Thu, 14 Jul 2005 21:16:27 -0400
From: Daniel Jacobowitz <drow@false.org>
version=3.0.2
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.
Or the Linux kernel on the 440GP doesn't properly initialize the FPU
when gdb writes the floating-point registers before the program itself
has executed an FPU instruction.
Mark
prev parent reply other threads:[~2005-07-15 18:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-15 1:08 Claudia Salzberg
2005-07-15 1:16 ` Daniel Jacobowitz
2005-07-15 18:09 ` Mark Kettenis [this message]
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=200507151809.j6FI97ee000621@elgar.sibelius.xs4all.nl \
--to=mark.kettenis@xs4all.nl \
--cc=drow@false.org \
--cc=gdb@sources.redhat.com \
--cc=salzberg@us.ibm.com \
/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: link
Be 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).