Change regcache list to be an hash map
[deliverable/binutils-gdb.git] / gdb / sparc64-obsd-tdep.c
index f18b593c6d3421f84386b6b69d21a909127e2011..42ddbf6e927b9f2c60626e327e749c0d78ebf759 100644 (file)
@@ -1,6 +1,6 @@
 /* Target-dependent code for OpenBSD/sparc64.
 
-   Copyright (C) 2004-2018 Free Software Foundation, Inc.
+   Copyright (C) 2004-2019 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -334,7 +334,7 @@ sparc64obsd_supply_uthread (struct regcache *regcache,
   if (regnum == SPARC_SP_REGNUM || regnum == -1)
     {
       store_unsigned_integer (buf, 8, byte_order, fp);
-      regcache_raw_supply (regcache, SPARC_SP_REGNUM, buf);
+      regcache->raw_supply (SPARC_SP_REGNUM, buf);
 
       if (regnum == SPARC_SP_REGNUM)
        return;
@@ -349,12 +349,12 @@ sparc64obsd_supply_uthread (struct regcache *regcache,
       if (regnum == SPARC64_PC_REGNUM || regnum == -1)
        {
          store_unsigned_integer (buf, 8, byte_order, i7 + 8);
-         regcache_raw_supply (regcache, SPARC64_PC_REGNUM, buf);
+         regcache->raw_supply (SPARC64_PC_REGNUM, buf);
        }
       if (regnum == SPARC64_NPC_REGNUM || regnum == -1)
        {
          store_unsigned_integer (buf, 8, byte_order, i7 + 12);
-         regcache_raw_supply (regcache, SPARC64_NPC_REGNUM, buf);
+         regcache->raw_supply (SPARC64_NPC_REGNUM, buf);
        }
 
       if (regnum == SPARC64_PC_REGNUM || regnum == SPARC64_NPC_REGNUM)
@@ -379,7 +379,7 @@ sparc64obsd_collect_uthread(const struct regcache *regcache,
     {
       CORE_ADDR fp_addr = addr + SPARC64OBSD_UTHREAD_FP_OFFSET;
 
-      regcache_raw_collect (regcache, SPARC_SP_REGNUM, buf);
+      regcache->raw_collect (SPARC_SP_REGNUM, buf);
       write_memory (fp_addr,buf, 8);
     }
 
@@ -387,7 +387,7 @@ sparc64obsd_collect_uthread(const struct regcache *regcache,
     {
       CORE_ADDR i7, i7_addr = addr + SPARC64OBSD_UTHREAD_PC_OFFSET;
 
-      regcache_raw_collect (regcache, SPARC64_PC_REGNUM, buf);
+      regcache->raw_collect (SPARC64_PC_REGNUM, buf);
       i7 = extract_unsigned_integer (buf, 8, byte_order) - 8;
       write_memory_unsigned_integer (i7_addr, 8, byte_order, i7);
 
@@ -395,7 +395,7 @@ sparc64obsd_collect_uthread(const struct regcache *regcache,
        return;
     }
 
-  regcache_raw_collect (regcache, SPARC_SP_REGNUM, buf);
+  regcache->raw_collect (SPARC_SP_REGNUM, buf);
   sp = extract_unsigned_integer (buf, 8, byte_order);
   sparc_collect_rwindow (regcache, sp, regnum);
 }
This page took 0.024476 seconds and 4 git commands to generate.