aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-linux-nat.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2010-06-11 12:08:51 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2010-06-11 12:08:51 +0000
commitb7a8b4ef6b4203072015422e0601440f60f29adb (patch)
tree1a27745f7294dce2a1087c480627779095e8fa17 /gdb/i386-linux-nat.c
parent9bcd0325fea4de9bd1a798f6c94321bd992364be (diff)
downloadgdb-b7a8b4ef6b4203072015422e0601440f60f29adb.zip
gdb-b7a8b4ef6b4203072015422e0601440f60f29adb.tar.gz
gdb-b7a8b4ef6b4203072015422e0601440f60f29adb.tar.bz2
* gregset.h (GDB_FPXREGSET_T): Remove.
(gdb_fpxregset_t): Likewise. (supply_fpxregset): Remove prototype. (fill_fpxregset): Likewise. * i386-linux-nat.c (supply_fpxregset): Remove. (fill_fpxregset): Likewise. (fetch_fpxregs): Inline supply_fpxregset call. (store_fpxregs): Inline fill_fpxregset call. * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h. * config/i386/nm-linux.h: Remove file.
Diffstat (limited to 'gdb/i386-linux-nat.c')
-rw-r--r--gdb/i386-linux-nat.c25
1 files changed, 2 insertions, 23 deletions
diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c
index eba0b6a..4fce1ac 100644
--- a/gdb/i386-linux-nat.c
+++ b/gdb/i386-linux-nat.c
@@ -413,27 +413,6 @@ store_xstateregs (const struct regcache *regcache, int tid, int regno)
#ifdef HAVE_PTRACE_GETFPXREGS
-/* Fill GDB's register array with the floating-point and SSE register
- values in *FPXREGSETP. */
-
-void
-supply_fpxregset (struct regcache *regcache,
- const elf_fpxregset_t *fpxregsetp)
-{
- i387_supply_fxsave (regcache, -1, fpxregsetp);
-}
-
-/* Fill register REGNO (if it is a floating-point or SSE register) in
- *FPXREGSETP with the value in GDB's register array. If REGNO is
- -1, do this for all registers. */
-
-void
-fill_fpxregset (const struct regcache *regcache,
- elf_fpxregset_t *fpxregsetp, int regno)
-{
- i387_collect_fxsave (regcache, regno, fpxregsetp);
-}
-
/* Fetch all registers covered by the PTRACE_GETFPXREGS request from
process/thread TID and store their values in GDB's register array.
Return non-zero if successful, zero otherwise. */
@@ -457,7 +436,7 @@ fetch_fpxregs (struct regcache *regcache, int tid)
perror_with_name (_("Couldn't read floating-point and SSE registers"));
}
- supply_fpxregset (regcache, (const elf_fpxregset_t *) &fpxregs);
+ i387_supply_fxsave (regcache, -1, (const elf_fpxregset_t *) &fpxregs);
return 1;
}
@@ -484,7 +463,7 @@ store_fpxregs (const struct regcache *regcache, int tid, int regno)
perror_with_name (_("Couldn't read floating-point and SSE registers"));
}
- fill_fpxregset (regcache, &fpxregs, regno);
+ i387_collect_fxsave (regcache, regno, &fpxregs);
if (ptrace (PTRACE_SETFPXREGS, tid, 0, &fpxregs) == -1)
perror_with_name (_("Couldn't write floating-point and SSE registers"));