From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5761 invoked by alias); 15 Jul 2005 01:16:31 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 5752 invoked by uid 22791); 15 Jul 2005 01:16:29 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 15 Jul 2005 01:16:29 +0000 Received: from drow by nevyn.them.org with local (Exim 4.52) id 1DtEoV-0006W9-Gc; Thu, 14 Jul 2005 21:16:27 -0400 Date: Fri, 15 Jul 2005 01:16:00 -0000 From: Daniel Jacobowitz To: Claudia Salzberg Cc: gdb@sources.redhat.com Subject: Re: examining floating point data with 'print' on non floating point kernel Message-ID: <20050715011627.GA25003@nevyn.them.org> Mail-Followup-To: Claudia Salzberg , gdb@sources.redhat.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i X-SW-Source: 2005-07/txt/msg00178.txt.bz2 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