2004-09-12 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / nto-procfs.c
index 7fe1cc0c22df6a716b611e188428145b7cc0f26d..910156601a6997f9142789db6d227d9d8be091e8 100644 (file)
@@ -30,7 +30,7 @@
 #include <sys/procfs.h>
 #include <sys/neutrino.h>
 #include <sys/syspage.h>
-#include <gdb_dirent.h>
+#include "gdb_dirent.h"
 #include <sys/netmgr.h>
 
 #include "gdb_string.h"
@@ -375,7 +375,7 @@ procfs_meminfo (char *args, int from_tty)
   err = devctl (ctl_fd, DCMD_PROC_MAPINFO, NULL, 0, &num);
   if (err != EOK)
     {
-      printf ("failed devctl num mapinfos - %d (%s)\n", err, strerror (err));
+      printf ("failed devctl num mapinfos - %d (%s)\n", err, safe_strerror (err));
       return;
     }
 
@@ -389,7 +389,7 @@ procfs_meminfo (char *args, int from_tty)
                * sizeof (procfs_mapinfo), &num);
   if (err != EOK)
     {
-      printf ("failed devctl mapinfos - %d (%s)\n", err, strerror (err));
+      printf ("failed devctl mapinfos - %d (%s)\n", err, safe_strerror (err));
       xfree (mapinfos);
       return;
     }
@@ -494,7 +494,7 @@ procfs_files_info (struct target_ops *ignore)
 
 /* Mark our target-struct as eligible for stray "run" and "attach" commands.  */
 static int
-procfs_can_run ()
+procfs_can_run (void)
 {
   return 1;
 }
@@ -963,7 +963,8 @@ breakup_args (char *scratch, char **argv)
 }
 
 static void
-procfs_create_inferior (char *exec_file, char *allargs, char **env)
+procfs_create_inferior (char *exec_file, char *allargs, char **env,
+                       int from_tty)
 {
   struct inheritance inherit;
   pid_t pid;
@@ -1188,7 +1189,7 @@ procfs_store_registers (int regno)
       if (len < 1)
        return;
 
-      regcache_collect (regno, (char *) &reg + off);
+      regcache_raw_collect (current_regcache, regno, (char *) &reg + off);
 
       err = devctl (ctl_fd, dev_set, &reg, regsize, 0);
       if (err != EOK)
This page took 0.024268 seconds and 4 git commands to generate.