From 882e8c158325af7466abe563f2ed212fc53a4ea7 Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Thu, 8 Jul 1993 16:01:52 +0000 Subject: (REGISTER_CONVERT_TO_VIRTUAL): Use REGISTER_RAW_SIZE to determine bytes to copy. (REGISTER_CONVERT_TO_RAW): Ditto. --- gdb/config/sparc/tm-sparc.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gdb/config/sparc/tm-sparc.h b/gdb/config/sparc/tm-sparc.h index a6e5e38..07c8cde 100644 --- a/gdb/config/sparc/tm-sparc.h +++ b/gdb/config/sparc/tm-sparc.h @@ -183,8 +183,6 @@ extern CORE_ADDR sparc_pc_adjust(); #define REGISTER_IN_WINDOW_P(regnum) \ ((regnum) >= 8 && (regnum) < 32) - - /* Number of bytes of storage in the actual machine representation for register N. */ @@ -216,13 +214,13 @@ extern CORE_ADDR sparc_pc_adjust(); to virtual format for register REGNUM. */ #define REGISTER_CONVERT_TO_VIRTUAL(REGNUM,FROM,TO) \ -{ memcpy ((TO), (FROM), 4); } +{ memcpy ((TO), (FROM), REGISTER_RAW_SIZE (REGNUM)); } /* Convert data from virtual format for register REGNUM to raw format for register REGNUM. */ #define REGISTER_CONVERT_TO_RAW(REGNUM,FROM,TO) \ -{ memcpy ((TO), (FROM), 4); } +{ memcpy ((TO), (FROM), REGISTER_RAW_SIZE (REGNUM)); } /* Return the GDB type object for the "standard" data type of data in register N. */ -- cgit v1.1