diff options
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r-- | gdb/procfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c index 34515a0..fb3fa58 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -3223,7 +3223,7 @@ procfs_fetch_registers (struct target_ops *ops, ptid_t ptid = regcache_get_ptid (regcache); int pid = ptid_get_pid (ptid); int tid = ptid_get_lwp (ptid); - struct gdbarch *gdbarch = get_regcache_arch (regcache); + struct gdbarch *gdbarch = regcache->arch (); pi = find_procinfo_or_die (pid, tid); @@ -3273,7 +3273,7 @@ procfs_store_registers (struct target_ops *ops, ptid_t ptid = regcache_get_ptid (regcache); int pid = ptid_get_pid (ptid); int tid = ptid_get_lwp (ptid); - struct gdbarch *gdbarch = get_regcache_arch (regcache); + struct gdbarch *gdbarch = regcache->arch (); pi = find_procinfo_or_die (pid, tid); |