diff options
Diffstat (limited to 'gdb/xtensa-linux-nat.c')
-rw-r--r-- | gdb/xtensa-linux-nat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/xtensa-linux-nat.c b/gdb/xtensa-linux-nat.c index b8366c5..ad411f1 100644 --- a/gdb/xtensa-linux-nat.c +++ b/gdb/xtensa-linux-nat.c @@ -51,7 +51,7 @@ fill_gregset (const struct regcache *regcache, { int i; xtensa_elf_gregset_t *regs = (xtensa_elf_gregset_t *) gregsetp; - struct gdbarch *gdbarch = get_regcache_arch (regcache); + struct gdbarch *gdbarch = regcache->arch (); if (regnum == gdbarch_pc_regnum (gdbarch) || regnum == -1) regcache_raw_collect (regcache, gdbarch_pc_regnum (gdbarch), ®s->pc); @@ -121,7 +121,7 @@ supply_gregset_reg (struct regcache *regcache, int i; xtensa_elf_gregset_t *regs = (xtensa_elf_gregset_t *) gregsetp; - struct gdbarch *gdbarch = get_regcache_arch (regcache); + struct gdbarch *gdbarch = regcache->arch (); if (regnum == gdbarch_pc_regnum (gdbarch) || regnum == -1) regcache_raw_supply (regcache, gdbarch_pc_regnum (gdbarch), ®s->pc); |