diff options
Diffstat (limited to 'gdb/tracefile-tfile.c')
-rw-r--r-- | gdb/tracefile-tfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/tracefile-tfile.c b/gdb/tracefile-tfile.c index 727570c..6ef904d 100644 --- a/gdb/tracefile-tfile.c +++ b/gdb/tracefile-tfile.c @@ -843,7 +843,7 @@ static void tfile_fetch_registers (struct target_ops *ops, struct regcache *regcache, int regno) { - struct gdbarch *gdbarch = get_regcache_arch (regcache); + struct gdbarch *gdbarch = regcache->arch (); int offset, regn, regsize, dummy; /* An uninitialized reg size says we're not going to be @@ -859,7 +859,7 @@ tfile_fetch_registers (struct target_ops *ops, for (regn = 0; regn < gdbarch_num_regs (gdbarch); regn++) { - if (!remote_register_number_and_offset (get_regcache_arch (regcache), + if (!remote_register_number_and_offset (regcache->arch (), regn, &dummy, &offset)) continue; |