aboutsummaryrefslogtreecommitdiff
path: root/gdb/amd64-nat.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-10-08 12:48:05 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-10-08 12:48:05 +0000
commit2ae02b477b5068d2598f45fc416fc525fd4f9a4b (patch)
treec85aa8dedaf9e5f9d30923d746be70bb0522202e /gdb/amd64-nat.c
parentec7cc0e81672aaea3cc6610ac4989d5728530276 (diff)
downloadgdb-2ae02b477b5068d2598f45fc416fc525fd4f9a4b.zip
gdb-2ae02b477b5068d2598f45fc416fc525fd4f9a4b.tar.gz
gdb-2ae02b477b5068d2598f45fc416fc525fd4f9a4b.tar.bz2
2007-10-08 Markus Deuling <deuling@de.ibm.com>
* amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache): Use get_regcache_arch or get_frame_arch to get at the current architecture by regcache or by frame, respectively. * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise. * amd64-nat.c (amd64_supply_native_gregset) (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
Diffstat (limited to 'gdb/amd64-nat.c')
-rw-r--r--gdb/amd64-nat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/amd64-nat.c b/gdb/amd64-nat.c
index c641e89..9c6965a 100644
--- a/gdb/amd64-nat.c
+++ b/gdb/amd64-nat.c
@@ -98,8 +98,8 @@ amd64_supply_native_gregset (struct regcache *regcache,
if (gdbarch_ptr_bit (gdbarch) == 32)
num_regs = amd64_native_gregset32_num_regs;
- if (num_regs > gdbarch_num_regs (current_gdbarch))
- num_regs = gdbarch_num_regs (current_gdbarch);
+ if (num_regs > gdbarch_num_regs (gdbarch))
+ num_regs = gdbarch_num_regs (gdbarch);
for (i = 0; i < num_regs; i++)
{
@@ -145,8 +145,8 @@ amd64_collect_native_gregset (const struct regcache *regcache,
}
}
- if (num_regs > gdbarch_num_regs (current_gdbarch))
- num_regs = gdbarch_num_regs (current_gdbarch);
+ if (num_regs > gdbarch_num_regs (gdbarch))
+ num_regs = gdbarch_num_regs (gdbarch);
for (i = 0; i < num_regs; i++)
{