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-linux-tdep.c | |
parent | ec7cc0e81672aaea3cc6610ac4989d5728530276 (diff) | |
download | gdb-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-linux-tdep.c')
-rw-r--r-- | gdb/amd64-linux-tdep.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/amd64-linux-tdep.c b/gdb/amd64-linux-tdep.c index e26bdd5..aeb6600 100644 --- a/gdb/amd64-linux-tdep.c +++ b/gdb/amd64-linux-tdep.c @@ -154,7 +154,8 @@ amd64_linux_sigcontext_addr (struct frame_info *next_frame) CORE_ADDR sp; gdb_byte buf[8]; - frame_unwind_register (next_frame, gdbarch_sp_regnum (current_gdbarch), buf); + frame_unwind_register (next_frame, + gdbarch_sp_regnum (get_frame_arch (next_frame)), buf); sp = extract_unsigned_integer (buf, 8); /* The sigcontext structure is part of the user context. A pointer |