* procfs.c (proc_wait): Call print_sys_errmsg() if we get an
[deliverable/binutils-gdb.git] / gdb / remote-nindy.c
index d5b4b59e5351e075e6e152a5cdc78937768fb54e..1e38f3d3bd412f4117582a6fddc53f8358a9890a 100644 (file)
@@ -95,12 +95,11 @@ NINDY ROM monitor at the other end of the line.
  *
  ******************************************************************************/
 
-#include <stdio.h>
+#include "defs.h"
 #include <signal.h>
 #include <sys/types.h>
 #include <setjmp.h>
 
-#include "defs.h"
 #include "frame.h"
 #include "inferior.h"
 #include "target.h"
@@ -471,7 +470,7 @@ struct nindy_regs {
   char fp_as_double[4 * 8];
 };
 
-static int
+static void
 nindy_fetch_registers(regno)
      int regno;
 {
@@ -498,16 +497,16 @@ nindy_fetch_registers(regno)
   }
 
   registers_fetched ();
-  return 0;
 }
 
 static void
 nindy_prepare_to_store()
 {
-  nindy_fetch_registers(-1);
+  /* Fetch all regs if they aren't already here.  */
+  read_register_bytes (0, NULL, REGISTER_BYTES);
 }
 
-static int
+static void
 nindy_store_registers(regno)
      int regno;
 {
@@ -537,7 +536,6 @@ nindy_store_registers(regno)
   immediate_quit++;
   ninRegsPut( (char *) &nindy_regs );
   immediate_quit--;
-  return 0;
 }
 
 /* Read a word from remote address ADDR and return it.
This page took 0.023451 seconds and 4 git commands to generate.