diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-08 12:48:05 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-08 12:48:05 +0000 |
commit | 2ae02b477b5068d2598f45fc416fc525fd4f9a4b (patch) | |
tree | c85aa8dedaf9e5f9d30923d746be70bb0522202e /gdb/amd64-nat.c | |
parent | 2007-10-08 Markus Deuling <deuling@de.ibm.com> (diff) | |
download | binutils-gdb-2ae02b477b5068d2598f45fc416fc525fd4f9a4b.tar.gz binutils-gdb-2ae02b477b5068d2598f45fc416fc525fd4f9a4b.tar.bz2 binutils-gdb-2ae02b477b5068d2598f45fc416fc525fd4f9a4b.zip |
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.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/amd64-nat.c b/gdb/amd64-nat.c index c641e89d008..9c6965a73b6 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++) { |