Class readonly_detached_regcache
[deliverable/binutils-gdb.git] / gdb / dummy-frame.c
index db8ba1b8e0b8b1fd7b85738d5b759c0ce0ae6c1c..a67033e6f2cca89b91acdb43c9fcc669740de5a2 100644 (file)
@@ -282,7 +282,7 @@ cleanup_dummy_frames (struct target_ops *target, int from_tty)
 struct dummy_frame_cache
 {
   struct frame_id this_id;
-  struct regcache *prev_regcache;
+  readonly_detached_regcache *prev_regcache;
 };
 
 static int
@@ -352,8 +352,8 @@ dummy_frame_prev_register (struct frame_info *this_frame,
   /* Use the regcache_cooked_read() method so that it, on the fly,
      constructs either a raw or pseudo register from the raw
      register cache.  */
-  regcache_cooked_read (cache->prev_regcache, regnum,
-                       value_contents_writeable (reg_val));
+  cache->prev_regcache->cooked_read (regnum,
+                                    value_contents_writeable (reg_val));
   return reg_val;
 }
 
This page took 0.026637 seconds and 4 git commands to generate.