Class readonly_detached_regcache
[deliverable/binutils-gdb.git] / gdb / ppc-linux-tdep.c
index 13a50d6756308724b2de93929d81ce01f924d681..d6a98fc0dbfe6caff51967c2a970d4af53815621 100644 (file)
@@ -1262,7 +1262,7 @@ ppc_linux_spe_context (int wordsize, enum bfd_endian byte_order,
 struct ppu2spu_cache
 {
   struct frame_id frame_id;
-  struct regcache *regcache;
+  readonly_detached_regcache *regcache;
 };
 
 static struct gdbarch *
@@ -1369,10 +1369,10 @@ ppu2spu_sniffer (const struct frame_unwind *self,
        {
          struct ppu2spu_cache *cache
            = FRAME_OBSTACK_CALLOC (1, struct ppu2spu_cache);
-         std::unique_ptr<struct regcache> regcache
-           (new struct regcache (data.gdbarch));
-
-         regcache->save (ppu2spu_unwind_register, &data);
+         std::unique_ptr<readonly_detached_regcache> regcache
+           (new readonly_detached_regcache (data.gdbarch,
+                                            ppu2spu_unwind_register,
+                                            &data));
 
          cache->frame_id = frame_id_build (base, func);
          cache->regcache = regcache.release ();
This page took 0.026784 seconds and 4 git commands to generate.