From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2401 invoked by alias); 15 Nov 2003 22:35:46 -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 2384 invoked from network); 15 Nov 2003 22:35:38 -0000 Received: from unknown (HELO localhost.redhat.com) (205.151.10.112) by sources.redhat.com with SMTP; 15 Nov 2003 22:35:38 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 0CCCF2B90 for ; Sat, 15 Nov 2003 17:34:29 -0500 (EST) Message-ID: <3FB6A9F4.4070607@gnu.org> Date: Sat, 15 Nov 2003 22:35:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [commit/mips] Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with register_size Content-Type: multipart/mixed; boundary="------------060702050009080704070809" X-SW-Source: 2003-11/txt/msg00331.txt.bz2 This is a multi-part message in MIME format. --------------060702050009080704070809 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 113 Hello, Since the MIPS doesn't set deprecated_register_virtual_size, the two are equivalent. committed, Andrew --------------060702050009080704070809 Content-Type: text/plain; name="diffs" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diffs" Content-length: 2621 2003-11-15 Andrew Cagney * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with register_size. Index: mips-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/mips-tdep.c,v retrieving revision 1.246 diff -u -r1.246 mips-tdep.c --- mips-tdep.c 15 Nov 2003 22:09:06 -0000 1.246 +++ mips-tdep.c 15 Nov 2003 22:29:14 -0000 @@ -639,9 +639,10 @@ NOTE: cagney/2003-06-15: This is so bogus. The register's raw size is changing according to the ABI (FP_REGISTER_DOUBLE). Also, GDB's protocol is defined by a - combination of DEPRECATED_REGISTER_RAW_SIZE and DEPRECATED_REGISTER_BYTE. */ + combination of DEPRECATED_REGISTER_RAW_SIZE and + DEPRECATED_REGISTER_BYTE. */ if (mips64_transfers_32bit_regs_p) - return DEPRECATED_REGISTER_VIRTUAL_SIZE (regnum); + return register_size (current_gdbarch, regnum); else if (regnum >= FP0_REGNUM && regnum < FP0_REGNUM + 32 && FP_REGISTER_DOUBLE) /* For MIPS_ABI_N32 (for example) we need 8 byte floating point @@ -702,7 +703,7 @@ if (mips64_transfers_32bit_regs_p) return 0; else - return (DEPRECATED_REGISTER_RAW_SIZE (reg_nr) > DEPRECATED_REGISTER_VIRTUAL_SIZE (reg_nr)); + return (DEPRECATED_REGISTER_RAW_SIZE (reg_nr) > register_size (current_gdbarch, reg_nr)); } static void @@ -4218,7 +4219,7 @@ fprintf_filtered (file, ": "); if (TARGET_BYTE_ORDER == BFD_ENDIAN_BIG) - offset = DEPRECATED_REGISTER_RAW_SIZE (regnum) - DEPRECATED_REGISTER_VIRTUAL_SIZE (regnum); + offset = DEPRECATED_REGISTER_RAW_SIZE (regnum) - register_size (current_gdbarch, regnum); else offset = 0; @@ -4288,17 +4289,17 @@ /* pad small registers */ for (byte = 0; byte < (mips_regsize (current_gdbarch) - - DEPRECATED_REGISTER_VIRTUAL_SIZE (regnum)); + - register_size (current_gdbarch, regnum)); byte++) printf_filtered (" "); /* Now print the register value in hex, endian order. */ if (TARGET_BYTE_ORDER == BFD_ENDIAN_BIG) - for (byte = DEPRECATED_REGISTER_RAW_SIZE (regnum) - DEPRECATED_REGISTER_VIRTUAL_SIZE (regnum); + for (byte = DEPRECATED_REGISTER_RAW_SIZE (regnum) - register_size (current_gdbarch, regnum); byte < DEPRECATED_REGISTER_RAW_SIZE (regnum); byte++) fprintf_filtered (file, "%02x", (unsigned char) raw_buffer[byte]); else - for (byte = DEPRECATED_REGISTER_VIRTUAL_SIZE (regnum) - 1; + for (byte = register_size (current_gdbarch, regnum) - 1; byte >= 0; byte--) fprintf_filtered (file, "%02x", (unsigned char) raw_buffer[byte]); --------------060702050009080704070809--