aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-vxsparc.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@redhat.com>2002-04-24 05:34:52 +0000
committerDavid S. Miller <davem@redhat.com>2002-04-24 05:34:52 +0000
commit5a595886e4c8918e962b9365bb95533a2e7491ca (patch)
tree5645ad43bad636109d375cec76686fd8439234e6 /gdb/remote-vxsparc.c
parent96b3d632cba2375a38f98d33db5a911c0fccf9d5 (diff)
downloadgdb-5a595886e4c8918e962b9365bb95533a2e7491ca.zip
gdb-5a595886e4c8918e962b9365bb95533a2e7491ca.tar.gz
gdb-5a595886e4c8918e962b9365bb95533a2e7491ca.tar.bz2
2002-04-21 David S. Miller <davem@redhat.com>
* remote-vxsparc.c (vx_read_register): Fix typo, we want REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR. (vx_write_register): Likewise.
Diffstat (limited to 'gdb/remote-vxsparc.c')
-rw-r--r--gdb/remote-vxsparc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/remote-vxsparc.c b/gdb/remote-vxsparc.c
index 014f1d4..294e940 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 (&registers[REGISTER_BYTE (SP_REGNUM)],
- REGISTER_RAW_SIZE (CORE_ADDR));
+ REGISTER_RAW_SIZE (SP_REGNUM));
write_memory (sp, &registers[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 (&registers[REGISTER_BYTE (SP_REGNUM)],
- REGISTER_RAW_SIZE (CORE_ADDR));
+ REGISTER_RAW_SIZE (SP_REGNUM));
write_memory (sp, &registers[REGISTER_BYTE (L0_REGNUM)],
16 * REGISTER_RAW_SIZE (L0_REGNUM));
}