From 4d207da66b728c2cfe4bc35abe7cc5b6f03319bd Mon Sep 17 00:00:00 2001 From: davem Date: Wed, 24 Apr 2002 05:34:51 +0000 Subject: [PATCH] 2002-04-21 David S. Miller * remote-vxsparc.c (vx_read_register): Fix typo, we want REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR. (vx_write_register): Likewise. --- gdb/ChangeLog | 6 ++++++ gdb/remote-vxsparc.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8f110861a5..a15a5fd079 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2002-04-21 David S. Miller + + * remote-vxsparc.c (vx_read_register): Fix typo, we want + REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR. + (vx_write_register): Likewise. + 2002-04-23 J. Brobecker * source.c (is_regular_file): New function. diff --git a/gdb/remote-vxsparc.c b/gdb/remote-vxsparc.c index 014f1d457e..294e940f50 100644 --- a/gdb/remote-vxsparc.c +++ b/gdb/remote-vxsparc.c @@ -102,7 +102,7 @@ vx_read_register (int regno) (FRAME_FIND_SAVED_REGS, in particular, depends on this). */ sp = extract_address (®isters[REGISTER_BYTE (SP_REGNUM)], - REGISTER_RAW_SIZE (CORE_ADDR)); + REGISTER_RAW_SIZE (SP_REGNUM)); write_memory (sp, ®isters[REGISTER_BYTE (L0_REGNUM)], 16 * REGISTER_RAW_SIZE (L0_REGNUM)); @@ -173,7 +173,7 @@ vx_write_register (int regno) if (regno < 0 || (L0_REGNUM <= regno && regno <= I7_REGNUM)) { sp = extract_address (®isters[REGISTER_BYTE (SP_REGNUM)], - REGISTER_RAW_SIZE (CORE_ADDR)); + REGISTER_RAW_SIZE (SP_REGNUM)); write_memory (sp, ®isters[REGISTER_BYTE (L0_REGNUM)], 16 * REGISTER_RAW_SIZE (L0_REGNUM)); } -- 2.11.0