]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* i387-tdep.h: Update copyright year.
authorMark Kettenis <kettenis@gnu.org>
Sat, 28 Feb 2004 20:43:51 +0000 (20:43 +0000)
committerMark Kettenis <kettenis@gnu.org>
Sat, 28 Feb 2004 20:43:51 +0000 (20:43 +0000)
(i387_collect_fxsave): New prototype.
* i387-tdep.c: Update copyright year.
(i387_collect_fxsave): New function containing most of the code
from i387_fill_fxsave.
(i387_fill_fxsave): Call i387_collect_fxsave.

gdb/ChangeLog
gdb/i387-tdep.c
gdb/i387-tdep.h

index 188759739bcd6a21c53bd0281187780b8932d8d7..e999d4e2c8575f6b16cb9e0c5d9924165708a8e4 100644 (file)
@@ -1,3 +1,12 @@
+2004-02-28  Mark Kettenis  <kettenis@gnu.org>
+
+       * i387-tdep.h: Update copyright year.
+       (i387_collect_fxsave): New prototype.
+       * i387-tdep.c: Update copyright year.
+       (i387_collect_fxsave): New function containing most of the code
+       from i387_fill_fxsave.
+       (i387_fill_fxsave): Call i387_collect_fxsave.
+
 2004-02-28  Andrew Cagney  <cagney@redhat.com>
 
         * amd64-linux-nat.c (ps_get_thread_area): When architecture is
index 15525659bb85274c80015b2968e7e3fabab9fb7a..21386fb13f078ace1016b835682c03f46f922a79 100644 (file)
@@ -1,7 +1,7 @@
 /* Intel 387 floating point stuff.
 
    Copyright 1988, 1989, 1991, 1992, 1993, 1994, 1998, 1999, 2000,
-   2001, 2002, 2003 Free Software Foundation, Inc.
+   2001, 2002, 2003, 2004 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -613,14 +613,13 @@ i387_supply_fxsave (struct regcache *regcache, int regnum, const void *fxsave)
 }
 
 /* Fill register REGNUM (if it is a floating-point or SSE register) in
-   *FXSAVE 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 *FXSAVE.  */
+   *FXSAVE 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 *FXSAVE.  */
 
 void
-i387_fill_fxsave (void *fxsave, int regnum)
+i387_collect_fxsave (const struct regcache *regcache, int regnum, void *fxsave)
 {
-  struct regcache *regcache = current_regcache;
   struct gdbarch_tdep *tdep = gdbarch_tdep (current_gdbarch);
   char *regs = fxsave;
   int i;
@@ -686,6 +685,17 @@ i387_fill_fxsave (void *fxsave, int regnum)
 #undef I387_NUM_XMM_REGS
 }
 
+/* Fill register REGNUM (if it is a floating-point or SSE register) in
+   *FXSAVE 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 *FXSAVE.  */
+
+void
+i387_fill_fxsave (void *fxsave, int regnum)
+{
+  i387_collect_fxsave (current_regcache, regnum, fxsave);
+}
+
 /* Recreate the FTW (tag word) valid bits from the 80-bit FP data in
    *RAW.  */
 
index fa94a486d818f123ba7428d061adafba81b9df69..978fdf9937e1edfce70148b60b5a1c15a005ab2d 100644 (file)
@@ -1,6 +1,6 @@
 /* Target-dependent code for the i387.
 
-   Copyright 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+   Copyright 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -95,6 +95,14 @@ extern void i387_fill_fsave (void *fsave, int regnum);
 extern void i387_supply_fxsave (struct regcache *regcache, int regnum,
                                const void *fxsave);
 
+/* Fill register REGNUM (if it is a floating-point or SSE register) in
+   *FXSAVE 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 *FXSAVE.  */
+
+extern void i387_collect_fxsave (const struct regcache *regcache, int regnum,
+                                void *fxsave);
+
 /* Fill register REGNUM (if it is a floating-point or SSE register) in
    *FXSAVE 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