Fix gdb.ada/info_addr_mixed_case.exp (PR gdb/22670)
[deliverable/binutils-gdb.git] / gdb / inf-child.c
index 0326a93ae326f86a547e762f93419ed62d0ead43..69a149a144a8020cd2d40918a032a081ef843b35 100644 (file)
@@ -1,6 +1,6 @@
 /* Base/prototype target for default child (native) targets.
 
-   Copyright (C) 1988-2015 Free Software Foundation, Inc.
+   Copyright (C) 1988-2018 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -77,7 +77,7 @@ inf_child_fetch_inferior_registers (struct target_ops *ops,
   if (regnum == -1)
     {
       for (regnum = 0;
-          regnum < gdbarch_num_regs (get_regcache_arch (regcache));
+          regnum < gdbarch_num_regs (regcache->arch ());
           regnum++)
        regcache_raw_supply (regcache, regnum, NULL);
     }
@@ -209,7 +209,8 @@ inf_child_pid_to_exec_file (struct target_ops *self, int pid)
 static int
 inf_child_fileio_open (struct target_ops *self,
                       struct inferior *inf, const char *filename,
-                      int flags, int mode, int *target_errno)
+                      int flags, int mode, int warn_if_slow,
+                      int *target_errno)
 {
   int nat_flags;
   mode_t nat_mode;
@@ -351,7 +352,7 @@ inf_child_fileio_readlink (struct target_ops *self,
       return NULL;
     }
 
-  ret = xmalloc (len + 1);
+  ret = (char *) xmalloc (len + 1);
   memcpy (ret, buf, len);
   ret[len] = '\0';
   return ret;
This page took 0.026099 seconds and 4 git commands to generate.