summaryrefslogtreecommitdiff
path: root/gdb/i386-linux-nat.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2010-06-11 12:08:43 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2010-06-11 12:08:43 +0000
commitd07d104076d5eeaa8ed545ea3562ec399b222fed (patch)
treef67a23a6966047d1c94f3b1aa9a6adf28a9aaf12 /gdb/i386-linux-nat.c
parent243efe6cacd0ee083c8231654425a545f671f5a5 (diff)
downloadgdb-d07d104076d5eeaa8ed545ea3562ec399b222fed.tar.gz
* 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 eba0b6ae88f..4fce1acf68b 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"));