From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4373 invoked by alias); 11 Nov 2002 16:00:28 -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 4195 invoked from network); 11 Nov 2002 16:00:17 -0000 Received: from unknown (HELO localhost.redhat.com) (24.112.240.27) by sources.redhat.com with SMTP; 11 Nov 2002 16:00:17 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 9669C3D04 for ; Mon, 11 Nov 2002 11:00:12 -0500 (EST) Message-ID: <3DCFD40C.9020906@redhat.com> Date: Mon, 11 Nov 2002 08:00:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020824 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [patch] Fix x86-64 build Content-Type: multipart/mixed; boundary="------------070009000906050203020502" X-SW-Source: 2002-11/txt/msg00306.txt.bz2 This is a multi-part message in MIME format. --------------070009000906050203020502 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 103 Hello, This quick hack gets around my x86-64 build problem that MarkK pointed out. Committed, Andrew --------------070009000906050203020502 Content-Type: text/plain; name="diffs" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diffs" Content-length: 963 2002-11-11 Andrew Cagney * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's i386_fp_regnum_p. Index: gdb/x86-64-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/x86-64-tdep.c,v retrieving revision 1.36 diff -u -r1.36 x86-64-tdep.c --- gdb/x86-64-tdep.c 2 Nov 2002 14:59:10 -0000 1.36 +++ gdb/x86-64-tdep.c 11 Nov 2002 15:49:47 -0000 @@ -175,6 +175,15 @@ return *x86_64_register_info_table[regno].type; } +/* FIXME: cagney/2002-11-11: Once the i386 and x86-64 targets are + merged, this function can go away. */ +int +i386_fp_regnum_p (int regnum) +{ + return (regnum < NUM_REGS + && (FP0_REGNUM && FP0_REGNUM <= (regnum) && (regnum) < FPC_REGNUM)); +} + /* x86_64_register_convertible is true if register N's virtual format is different from its raw format. Note that this definition assumes that the host supports IEEE 32-bit floats, since it doesn't say --------------070009000906050203020502--