diff options
Diffstat (limited to 'gdb/aarch64-fbsd-nat.c')
-rw-r--r-- | gdb/aarch64-fbsd-nat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/aarch64-fbsd-nat.c b/gdb/aarch64-fbsd-nat.c index ffe7d5b..73aff9c 100644 --- a/gdb/aarch64-fbsd-nat.c +++ b/gdb/aarch64-fbsd-nat.c @@ -54,7 +54,7 @@ aarch64_fbsd_fetch_inferior_registers (struct target_ops *ops, { pid_t pid = get_ptrace_pid (regcache_get_ptid (regcache)); - struct gdbarch *gdbarch = get_regcache_arch (regcache); + struct gdbarch *gdbarch = regcache->arch (); if (regnum == -1 || getregs_supplies (gdbarch, regnum)) { struct reg regs; @@ -87,7 +87,7 @@ aarch64_fbsd_store_inferior_registers (struct target_ops *ops, { pid_t pid = get_ptrace_pid (regcache_get_ptid (regcache)); - struct gdbarch *gdbarch = get_regcache_arch (regcache); + struct gdbarch *gdbarch = regcache->arch (); if (regnum == -1 || getregs_supplies (gdbarch, regnum)) { struct reg regs; |