From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10207 invoked by alias); 14 Jan 2004 15:10:47 -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 10186 invoked from network); 14 Jan 2004 15:10:47 -0000 Received: from unknown (HELO localhost.redhat.com) (216.129.200.20) by sources.redhat.com with SMTP; 14 Jan 2004 15:10:47 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 6EF8D2B8F; Wed, 14 Jan 2004 10:10:46 -0500 (EST) Message-ID: <40055BF6.8030805@gnu.org> Date: Wed, 14 Jan 2004 15:10:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [commit/mips] Wire in convert_register Content-Type: multipart/mixed; boundary="------------080102070207020302070607" X-SW-Source: 2004-01/txt/msg00373.txt.bz2 This is a multi-part message in MIME format. --------------080102070207020302070607 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 259 Hello, These functions never got enabled when they were merged in off a branch. This enables them, and fixes a little bit of bitrot. store.exp's float tests now work a little bit better. commited, Andrew (PS: I sent this last night but it went awal). --------------080102070207020302070607 Content-Type: text/plain; name="diffs" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diffs" Content-length: 1510 2004-01-12 Andrew Cagney * mips-tdep.c (mips_convert_register_p): Handle both raw and cooked floating-point registers. (mips_gdbarch_init): Set convert_register_p, register_to_value, and value_to_register. Index: mips-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/mips-tdep.c,v retrieving revision 1.271 diff -u -r1.271 mips-tdep.c --- mips-tdep.c 13 Jan 2004 21:38:46 -0000 1.271 +++ mips-tdep.c 14 Jan 2004 02:49:19 -0000 @@ -652,7 +652,8 @@ { return (TARGET_BYTE_ORDER == BFD_ENDIAN_BIG && register_size (current_gdbarch, regnum) == 4 - && (regnum) >= mips_regnum (current_gdbarch)->fp0 && (regnum) < mips_regnum (current_gdbarch)->fp0 + 32 + && (regnum % NUM_REGS) >= mips_regnum (current_gdbarch)->fp0 + && (regnum % NUM_REGS) < mips_regnum (current_gdbarch)->fp0 + 32 && TYPE_CODE(type) == TYPE_CODE_FLT && TYPE_LENGTH(type) == 8); } @@ -6030,6 +6031,10 @@ set_gdbarch_deprecated_pop_frame (gdbarch, mips_pop_frame); set_gdbarch_frame_align (gdbarch, mips_frame_align); set_gdbarch_deprecated_save_dummy_frame_tos (gdbarch, generic_save_dummy_frame_tos); + + set_gdbarch_convert_register_p (gdbarch, mips_convert_register_p); + set_gdbarch_register_to_value (gdbarch, mips_register_to_value); + set_gdbarch_value_to_register (gdbarch, mips_value_to_register); set_gdbarch_deprecated_frame_chain (gdbarch, mips_frame_chain); set_gdbarch_frameless_function_invocation (gdbarch, --------------080102070207020302070607--