Add assembler and disassembler support for the new Armv8.4-a registers for AArch64.
[deliverable/binutils-gdb.git] / gdb / core-regset.c
index 6d7f546b5419624a4aadf1bc0e441d123d5ec6fd..77ae85b9bfae7e933d763b0a0eceb585365b3046 100644 (file)
@@ -1,7 +1,6 @@
 /* Machine independent GDB support for core files on systems using "regsets".
 
-   Copyright (C) 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2003, 2007
-   Free Software Foundation, Inc.
+   Copyright (C) 1993-2017 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -35,8 +34,6 @@
 #include "regcache.h"
 
 #include <fcntl.h>
-#include <errno.h>
-#include "gdb_string.h"
 #include <time.h>
 #ifdef HAVE_SYS_PROCFS_H
 #include <sys/procfs.h>
@@ -59,7 +56,9 @@
 
 static void
 fetch_core_registers (struct regcache *regcache,
-                     char *core_reg_sect, unsigned core_reg_size, int which,
+                     char *core_reg_sect,
+                     unsigned core_reg_size,
+                     int which,
                      CORE_ADDR reg_addr)
 {
   gdb_gregset_t gregset;
@@ -85,8 +84,9 @@ fetch_core_registers (struct regcache *regcache,
       else
        {
          memcpy (&fpregset, core_reg_sect, sizeof (fpregset));
-         if (gdbarch_fp0_regnum (current_gdbarch) >= 0)
-           supply_fpregset (regcache, (const gdb_fpregset_t *) fpregset_p);
+         if (gdbarch_fp0_regnum (regcache->arch ()) >= 0)
+           supply_fpregset (regcache,
+                            (const gdb_fpregset_t *) fpregset_p);
        }
       break;
 
@@ -111,9 +111,6 @@ static struct core_fns regset_core_fns =
   NULL                                 /* next */
 };
 
-/* Provide a prototype to silence -Wmissing-prototypes.  */
-extern void _initialize_core_regset (void);
-
 void
 _initialize_core_regset (void)
 {
This page took 0.025972 seconds and 4 git commands to generate.