summaryrefslogtreecommitdiff
path: root/gdb/i387-tdep.h
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-03-15 22:44:12 +0000
committerMark Kettenis <kettenis@gnu.org>2004-03-15 22:44:12 +0000
commitc08e9a043bb136ee07fce8ca78bf8d008f23c3f0 (patch)
tree6665b1a49b21898a4aa02d4c82c56ddb465490c2 /gdb/i387-tdep.h
parent4c970979a2cf6d1c8f97ed04d5913005e4b152bb (diff)
downloadgdb-c08e9a043bb136ee07fce8ca78bf8d008f23c3f0.tar.gz
* i387-tdep.h (i387_collect_fsave): New prototype.
* i387-tdep.c (i387_collect_fsave): New function containing most of the code from i387_fill_fsave. (i387_fill_fsave): Call i387_fill_fsave.
Diffstat (limited to 'gdb/i387-tdep.h')
-rw-r--r--gdb/i387-tdep.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/i387-tdep.h b/gdb/i387-tdep.h
index 978fdf9937e..38e67559890 100644
--- a/gdb/i387-tdep.h
+++ b/gdb/i387-tdep.h
@@ -82,6 +82,14 @@ extern void i387_supply_fsave (struct regcache *regcache, int regnum,
const void *fsave);
/* Fill register REGNUM (if it is a floating-point register) in *FSAVE
+ with the value from REGCACHE. If REGNUM is -1, do this for all
+ registers. This function doesn't touch any of the reserved bits in
+ *FSAVE. */
+
+extern void i387_collect_fsave (const struct regcache *regcache, int regnum,
+ void *fsave);
+
+/* Fill register REGNUM (if it is a floating-point register) in *FSAVE
with the value in GDB's register cache. If REGNUM is -1, do this
for all registers. This function doesn't touch any of the reserved
bits in *FSAVE. */