2002-04-21 David S. Miller <davem@redhat.com>
authorDavid S. Miller <davem@redhat.com>
Wed, 24 Apr 2002 05:34:52 +0000 (05:34 +0000)
committerDavid S. Miller <davem@redhat.com>
Wed, 24 Apr 2002 05:34:52 +0000 (05:34 +0000)
* 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
gdb/remote-vxsparc.c

index 8f110861a51ef10e7f5b2e1aa7d51058908c328f..a15a5fd079b90f91ea99b37ae8350fb7ded360a8 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2002-04-23  J. Brobecker  <brobecker@gnat.com>
 
        * source.c (is_regular_file): New function.
index 014f1d457efdc3f63b09d0e32ce02371f94cc093..294e940f5007beda9be25c1ec2005d84e9325069 100644 (file)
@@ -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));
        }