diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2008-09-05 11:46:46 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2008-09-05 11:46:46 +0000 |
commit | 60441ab9edac79737e5cd961caf351951f349c1a (patch) | |
tree | 99ae506f8d920efc34eac47161c6b4b7576b2bcb /gdb/i386-nto-tdep.c | |
parent | bb48619059cec6b2fc701e339dc89c77ff3e0095 (diff) | |
download | gdb-60441ab9edac79737e5cd961caf351951f349c1a.zip gdb-60441ab9edac79737e5cd961caf351951f349c1a.tar.gz gdb-60441ab9edac79737e5cd961caf351951f349c1a.tar.bz2 |
* nto-tdep.h (struct nto_target_ops): Add gdbarch parameter to
register_area callback function.
* i386-nto-tdep.c (i386nto_register_area): Add gdbarch parameter.
Use it instead of current_gdbarch.
* nto-procfs.c (procfs_store_registers): Update call.
Diffstat (limited to 'gdb/i386-nto-tdep.c')
-rw-r--r-- | gdb/i386-nto-tdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/i386-nto-tdep.c b/gdb/i386-nto-tdep.c index 9b065a6..8e720e9 100644 --- a/gdb/i386-nto-tdep.c +++ b/gdb/i386-nto-tdep.c @@ -131,7 +131,8 @@ i386nto_regset_id (int regno) } static int -i386nto_register_area (int regno, int regset, unsigned *off) +i386nto_register_area (struct gdbarch *gdbarch, + int regno, int regset, unsigned *off) { int len; @@ -166,8 +167,7 @@ i386nto_register_area (int regno, int regset, unsigned *off) if (regno == -1) return regset_size; - *off = (regno - gdbarch_fp0_regnum (current_gdbarch)) - * regsize + off_adjust; + *off = (regno - gdbarch_fp0_regnum (gdbarch)) * regsize + off_adjust; return 10; /* Why 10 instead of regsize? GDB only stores 10 bytes per FP register so if we're sending a register back to the target, |