From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30842 invoked by alias); 5 Dec 2003 01:19:16 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 30829 invoked from network); 5 Dec 2003 01:19:16 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 5 Dec 2003 01:19:16 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id hB51JF214333 for ; Thu, 4 Dec 2003 20:19:15 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id hB51JE203322; Thu, 4 Dec 2003 20:19:14 -0500 Received: from localhost.localdomain (vpn50-70.rdu.redhat.com [172.16.50.70]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id hB51JDm5006545; Thu, 4 Dec 2003 20:19:13 -0500 Received: (from kev@localhost) by localhost.localdomain (8.11.6/8.11.6) id hB51J8G08603; Thu, 4 Dec 2003 18:19:08 -0700 Date: Fri, 05 Dec 2003 01:19:00 -0000 From: Kevin Buettner Message-Id: <1031205011907.ZM8602@localhost.localdomain> In-Reply-To: "J. Johnston" "[RFA]: fix ia64 long double support" (Dec 4, 5:37pm) References: <3FCFB735.80204@redhat.com> To: "J. Johnston" , gdb-patches@sources.redhat.com Subject: Re: [RFA]: fix ia64 long double support Cc: Kevin Buettner MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-12/txt/msg00167.txt.bz2 On Dec 4, 5:37pm, J. Johnston wrote: > Fix to a couple of problems. First of all, we aren't setting up a long double > format for the architecture so it defaults to double when you try and print a > long double value via gdb. > > Although the ia64 has a special long double format it specifies, > this format is only valid for register values. Values in memory use > the x86 extended float format which is 80 bits. Register long > doubles are 82 bits (2 more bits of exponent). So what happens when we try to print a long double in a register? > Anyway, this simple change fixes it so long doubles print correctly. > > Ok to commit? Sure. I'm guessing that we still won't always print long doubles correctly, but it looks like this gets us closer... Kevin