diff options
author | Mark Kettenis <kettenis@gnu.org> | 2004-03-16 13:48:23 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2004-03-16 13:48:23 +0000 |
commit | f5b1afdf6536ed161c97d55f196f029768d9b073 (patch) | |
tree | 89456913ca65d34bd839030a47cba9320a3a06be /gdb/i386bsd-nat.c | |
parent | 021d7868d08ec4a042946f0982861399989fa486 (diff) | |
download | gdb-f5b1afdf6536ed161c97d55f196f029768d9b073.zip gdb-f5b1afdf6536ed161c97d55f196f029768d9b073.tar.gz gdb-f5b1afdf6536ed161c97d55f196f029768d9b073.tar.bz2 |
* i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
of i387_fill_fsave.
(store_inferior_registers): Call i387_collect_fsave and
i387_collect_fxsave instead of i387_fill_fsave and
i387_fill_fxsave.
Diffstat (limited to 'gdb/i386bsd-nat.c')
-rw-r--r-- | gdb/i386bsd-nat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/i386bsd-nat.c b/gdb/i386bsd-nat.c index e97d3e5..e101cd1 100644 --- a/gdb/i386bsd-nat.c +++ b/gdb/i386bsd-nat.c @@ -166,7 +166,7 @@ supply_fpregset (fpregset_t *fpregsetp) void fill_fpregset (fpregset_t *fpregsetp, int regno) { - i387_fill_fsave ((char *) fpregsetp, regno); + i387_collect_fsave (current_regcache, regno, fpregsetp); } /* Fetch register REGNO from the inferior. If REGNO is -1, do this @@ -255,7 +255,7 @@ store_inferior_registers (int regno) { have_ptrace_xmmregs = 1; - i387_fill_fxsave (xmmregs, regno); + i387_collect_fxsave (current_regcache, regno, xmmregs); if (ptrace (PT_SETXMMREGS, PIDGET (inferior_ptid), (PTRACE_ARG3_TYPE) xmmregs, 0) == -1) @@ -269,8 +269,8 @@ store_inferior_registers (int regno) (PTRACE_ARG3_TYPE) &fpregs, 0) == -1) perror_with_name ("Couldn't get floating point status"); - i387_fill_fsave ((char *) &fpregs, regno); - + i387_collect_fsave (current_regcache, regno, &fpregs); + if (ptrace (PT_SETFPREGS, PIDGET (inferior_ptid), (PTRACE_ARG3_TYPE) &fpregs, 0) == -1) perror_with_name ("Couldn't write floating point status"); |