diff options
Diffstat (limited to 'gdb/avr-tdep.c')
-rw-r--r-- | gdb/avr-tdep.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/avr-tdep.c b/gdb/avr-tdep.c index 7f88e8f..c44a3aa 100644 --- a/gdb/avr-tdep.c +++ b/gdb/avr-tdep.c @@ -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); } |