diff options
Diffstat (limited to 'gdb/i386-gnu-nat.c')
-rw-r--r-- | gdb/i386-gnu-nat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/i386-gnu-nat.c b/gdb/i386-gnu-nat.c index 07e3a83..68e6293 100644 --- a/gdb/i386-gnu-nat.c +++ b/gdb/i386-gnu-nat.c @@ -127,7 +127,7 @@ gnu_fetch_registers (struct target_ops *ops, else { proc_debug (thread, "fetching register %s", - gdbarch_register_name (get_regcache_arch (regcache), + gdbarch_register_name (regcache->arch (), regno)); regcache_raw_supply (regcache, regno, @@ -183,7 +183,7 @@ gnu_store_registers (struct target_ops *ops, struct regcache *regcache, int regno) { struct proc *thread; - struct gdbarch *gdbarch = get_regcache_arch (regcache); + struct gdbarch *gdbarch = regcache->arch (); ptid_t ptid = regcache_get_ptid (regcache); /* Make sure we know about new threads. */ |