*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / remote-vxsparc.c
index 2c0fdc6b96dd927a9ca614d272d1b44a3325d272..294e940f5007beda9be25c1ec2005d84e9325069 100644 (file)
 #include "command.h"
 #include "symtab.h"
 #include "symfile.h"           /* for struct complaint */
+#include "regcache.h"
 
 #include "gdb_string.h"
 #include <errno.h>
-#include <signal.h>
 #include <fcntl.h>
 #include <sys/types.h>
 #include <sys/time.h>
@@ -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));
        }
This page took 0.023942 seconds and 4 git commands to generate.