[PATCH] s/amd64_fill_fxsave/amd64_collect_fxsave/

Mark Kettenis
2004-03-04T10:37:15Z

This paves the way for retiring amd64_fill_fxsave.

Committed to mainline,

Mark

Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>

* amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
instead of amd64_fill_fxsave.
* amd64bsd-nat.c (store_inferior_registers): Likewise.
* amd64fbsd-nat.c (fill_fpregset): Likewise.

Index: amd64-linux-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/amd64-linux-nat.c,v
retrieving revision 1.4
diff -u -p -r1.4 amd64-linux-nat.c
--- amd64-linux-nat.c 28 Feb 2004 19:38:21 -0000 1.4
+++ amd64-linux-nat.c 4 Mar 2004 10:34:10 -0000
@@ -176,7 +176,7 @@ supply_fpregset (elf_fpregset_t *fpregse
void
fill_fpregset (elf_fpregset_t *fpregsetp, int regnum)
{
- amd64_fill_fxsave ((char *) fpregsetp, regnum);
+ amd64_collect_fxsave (current_regcache, regnum, fpregsetp);
}

/* Fetch all floating-point registers from process/thread TID and store
Index: amd64bsd-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/amd64bsd-nat.c,v
retrieving revision 1.3
diff -u -p -r1.3 amd64bsd-nat.c
--- amd64bsd-nat.c 25 Feb 2004 20:59:12 -0000 1.3
+++ amd64bsd-nat.c 4 Mar 2004 10:34:10 -0000
@@ -98,7 +98,7 @@ store_inferior_registers (int regnum)
(PTRACE_ARG3_TYPE) &fpregs, 0) == -1)
perror_with_name ("Couldn't get floating point status");

- amd64_fill_fxsave ((char *) &fpregs, regnum);
+ amd64_collect_fxsave (current_regcache, regnum, &fpregs);

if (ptrace (PT_SETFPREGS, PIDGET (inferior_ptid),
(PTRACE_ARG3_TYPE) &fpregs, 0) == -1)
Index: amd64fbsd-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/amd64fbsd-nat.c,v
retrieving revision 1.12
diff -u -p -r1.12 amd64fbsd-nat.c
--- amd64fbsd-nat.c 25 Feb 2004 20:59:12 -0000 1.12
+++ amd64fbsd-nat.c 4 Mar 2004 10:34:10 -0000
@@ -141,7 +141,7 @@ supply_fpregset (fpregset_t *fpregsetp)
void
fill_fpregset (fpregset_t *fpregsetp, int regnum)
{
- amd64_fill_fxsave ((char *) fpregsetp, regnum);
+ amd64_collect_fxsave (current_regcache, regnum, fpregsetp);
}
\f