Pass readable_regcache to gdbarch method read_pc
[deliverable/binutils-gdb.git] / gdb / avr-tdep.c
index 7f88e8f5fdbe16cdc66d4513e95a16aab5628b08..c44a3aa96775c234472f5df3592b25bf4e8cb5ca 100644 (file)
@@ -367,10 +367,11 @@ avr_integer_to_address (struct gdbarch *gdbarch,
 }
 
 static CORE_ADDR
-avr_read_pc (struct regcache *regcache)
+avr_read_pc (readable_regcache *regcache)
 {
   ULONGEST pc;
-  regcache_cooked_read_unsigned (regcache, AVR_PC_REGNUM, &pc);
+
+  regcache->cooked_read (AVR_PC_REGNUM, &pc);
   return avr_make_iaddr (pc);
 }
 
This page took 0.024396 seconds and 4 git commands to generate.