summaryrefslogtreecommitdiff
path: root/gdb/i386-nto-tdep.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-10-09 18:18:50 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-10-09 18:18:50 +0000
commit8a82c348884493328ba4b6464dff51e9ca17d21b (patch)
treefa9a9b80ca068195c422de19f2397f2d4b06c995 /gdb/i386-nto-tdep.c
parent8e9f181fa3c0c06ff3eba51900cfa4d40785fcc4 (diff)
downloadgdb-8a82c348884493328ba4b6464dff51e9ca17d21b.tar.gz
2007-10-09 Markus Deuling <deuling@de.ibm.com>
* i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at the current architecture by regcache. (store_register, supply_gregset, fill_gregset, i386_linux_resume) (i386_linux_fetch_inferior_registers) (i386_linux_store_inferior_registers): Likewise. * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise. * i386-nto-tdep.c (i386nto_supply_gregset): Likewise. * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise. * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch. (i386_extract_return_value, i386_store_return_value): Likewise. * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at the current architecture by frame_info. (i386_sigtramp_frame_cache, i386_get_longjmp_target) (i386_register_to_value, i386_value_to_register): Likewise.
Diffstat (limited to 'gdb/i386-nto-tdep.c')
-rw-r--r--gdb/i386-nto-tdep.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/i386-nto-tdep.c b/gdb/i386-nto-tdep.c
index b959f3af413..19729b6dea2 100644
--- a/gdb/i386-nto-tdep.c
+++ b/gdb/i386-nto-tdep.c
@@ -81,10 +81,11 @@ nto_reg_offset (int regnum)
static void
i386nto_supply_gregset (struct regcache *regcache, char *gpregs)
{
- struct gdbarch_tdep *tdep = gdbarch_tdep (current_gdbarch);
+ struct gdbarch *gdbarch = get_regcache_arch (regcache);
+ struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
if(tdep->gregset == NULL)
- tdep->gregset = regset_alloc (current_gdbarch, i386_supply_gregset,
+ tdep->gregset = regset_alloc (gdbarch, i386_supply_gregset,
i386_collect_gregset);
gdb_assert (tdep->gregset_reg_offset == i386nto_gregset_reg_offset);