From 696314b6cbdd34d4a7a72145a7567f2855e34702 Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Mon, 12 Jul 1993 21:09:22 +0000 Subject: [PATCH] (REGISTER_CONVERTIBLE): Change value to 0. (REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): Move def'n to usual spot. --- gdb/config/h8300/tm-h8300.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/gdb/config/h8300/tm-h8300.h b/gdb/config/h8300/tm-h8300.h index ec534586071..5c29a62a425 100644 --- a/gdb/config/h8300/tm-h8300.h +++ b/gdb/config/h8300/tm-h8300.h @@ -124,17 +124,19 @@ extern CORE_ADDR h8300_skip_prologue (); /* Nonzero if register N requires conversion from raw format to virtual format. */ -#define REGISTER_CONVERTIBLE(N) 1 +#define REGISTER_CONVERTIBLE(N) 0 /* Convert data from raw format for register REGNUM to virtual format for register REGNUM. */ -/*#define REGISTER_CONVERT_TO_VIRTUAL(REGNUM,FROM,TO) */ +#define REGISTER_CONVERT_TO_VIRTUAL(REGNUM,FROM,TO) \ +{ 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) */ +#define REGISTER_CONVERT_TO_RAW(REGNUM,FROM,TO) \ +{ memcpy((TO), (FROM), REGISTER_RAW_SIZE (REGNUM)); } /* Return the GDB type object for the "standard" data type of data in register N. */ @@ -272,11 +274,6 @@ extern CORE_ADDR h8300_skip_prologue (); #define SHORT_INT_MAX 32767 #define SHORT_INT_MIN -32768 -#define REGISTER_CONVERT_TO_VIRTUAL(REGNUM,FROM,TO) \ -{ memcpy((TO), (FROM), BINWORD); } -#define REGISTER_CONVERT_TO_RAW(REGNUM,FROM,TO) \ -{ memcpy((TO), (FROM), BINWORD); } - #define BEFORE_MAIN_LOOP_HOOK \ hms_before_main_loop(); -- 2.30.2