public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Claudia Salzberg <salzberg@us.ibm.com>
Cc: gdb@sources.redhat.com
Subject: Re: examining floating point data with 'print' on non floating point kernel
Date: Fri, 15 Jul 2005 01:16:00 -0000	[thread overview]
Message-ID: <20050715011627.GA25003@nevyn.them.org> (raw)
In-Reply-To: <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

  reply	other threads:[~2005-07-15  1:16 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 [this message]
2005-07-15 18:09   ` Mark Kettenis

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=20050715011627.GA25003@nevyn.them.org \
    --to=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).