From 5a595886e4c8918e962b9365bb95533a2e7491ca Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Wed, 24 Apr 2002 05:34:52 +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 8f110861a51..a15a5fd079b 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 014f1d457ef..294e940f500 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.30.2