gdbserver: make aarch64_write_goto_address static
[deliverable/binutils-gdb.git] / gdb / linux-nat-trad.c
index 23abb0f7f844147009d2804fdb209ee5768fef4c..8b2ca8f884685460f39cf18689be2391ce2736ff 100644 (file)
@@ -1,6 +1,6 @@
 /* Generic GNU/Linux target using traditional ptrace register access.
 
-   Copyright (C) 1988-2018 Free Software Foundation, Inc.
+   Copyright (C) 1988-2020 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -22,6 +22,7 @@
 
 #include "nat/gdb_ptrace.h"
 #include "inf-ptrace.h"
+#include "gdbarch.h"
 
 /* Fetch register REGNUM from the inferior.  */
 
@@ -110,7 +111,7 @@ linux_nat_trad_target::store_register (const struct regcache *regcache,
   buf = (gdb_byte *) alloca (size);
 
   /* Write the register contents into the inferior a chunk at a time.  */
-  regcache_raw_collect (regcache, regnum, buf);
+  regcache->raw_collect (regnum, buf);
   for (i = 0; i < size; i += sizeof (PTRACE_TYPE_RET))
     {
       size_t chunk = std::min (sizeof (PTRACE_TYPE_RET), size - i);
This page took 0.025249 seconds and 4 git commands to generate.