aboutsummaryrefslogtreecommitdiff
path: root/gdb/tracefile.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/tracefile.c')
-rw-r--r--gdb/tracefile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/tracefile.c b/gdb/tracefile.c
index b6a800c..93d8816 100644
--- a/gdb/tracefile.c
+++ b/gdb/tracefile.c
@@ -387,7 +387,7 @@ trace_save_ctf (const char *dirname, int target_does_save)
void
tracefile_fetch_registers (struct regcache *regcache, int regno)
{
- struct gdbarch *gdbarch = get_regcache_arch (regcache);
+ struct gdbarch *gdbarch = regcache->arch ();
struct tracepoint *tp = get_tracepoint (get_tracepoint_number ());
int regn;