From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11423 invoked by alias); 28 Dec 2010 04:43:27 -0000 Received: (qmail 11410 invoked by uid 22791); 28 Dec 2010 04:43:26 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 28 Dec 2010 04:43:21 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 0E7882BABDA; Mon, 27 Dec 2010 23:43:20 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 9GECOdKPDD00; Mon, 27 Dec 2010 23:43:19 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 919062BAB2A; Mon, 27 Dec 2010 23:43:19 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id EB5751457BC; Tue, 28 Dec 2010 05:43:10 +0100 (CET) From: Joel Brobecker To: gdb-patches@sourceware.org Cc: Joel Brobecker Subject: [PATCH 1/8] Add a big-endian version of the ia64-ext floatformat Date: Tue, 28 Dec 2010 04:43:00 -0000 Message-Id: <1293511386-7384-2-git-send-email-brobecker@adacore.com> In-Reply-To: <1293511386-7384-1-git-send-email-brobecker@adacore.com> References: <1293511386-7384-1-git-send-email-brobecker@adacore.com> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-12/txt/msg00481.txt.bz2 ia64-tdep.c defines a floatformats_ia64_ext that should contain both the little-endian and the big-endian version of the float format used in the ia64 registers (an 82bit float format). Right now, both entries point to the same little-endian definition. A big-endian definition is now necessary for the ia64-hpux port. gdb/ChangeLog: * ia64-tdep.c (floatformat_ia64_ext_little): Renames floatformat_ia64_ext. (floatformat_ia64_ext_big): New static const. (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big. --- gdb/ia64-tdep.c | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c index 3cc0150..6e24c9e 100644 --- a/gdb/ia64-tdep.c +++ b/gdb/ia64-tdep.c @@ -285,16 +285,22 @@ floatformat_valid (const struct floatformat *fmt, const void *from) return 1; } -static const struct floatformat floatformat_ia64_ext = +static const struct floatformat floatformat_ia64_ext_little = { floatformat_little, 82, 0, 1, 17, 65535, 0x1ffff, 18, 64, - floatformat_intbit_yes, "floatformat_ia64_ext", floatformat_valid, NULL + floatformat_intbit_yes, "floatformat_ia64_ext_little", floatformat_valid, NULL +}; + +static const struct floatformat floatformat_ia64_ext_big = +{ + floatformat_big, 82, 46, 47, 17, 65535, 0x1ffff, 64, 64, + floatformat_intbit_yes, "floatformat_ia64_ext_big", floatformat_valid }; static const struct floatformat *floatformats_ia64_ext[2] = { - &floatformat_ia64_ext, - &floatformat_ia64_ext + &floatformat_ia64_ext_big, + &floatformat_ia64_ext_little }; static struct type * -- 1.7.1