* i387-tdep.c (i387_supply_register): When called with NULL as a
        buffer, mark the register as not provided (to mirror the behavior
        of supply_register).
        (i387_supply_fxsave): Ditto.
        (i387_supply_fsave): Ditto (inherits the behavior from
        i387_supply_register).
+2002-11-09  Klee Dienes  <kdienes@apple.com>
+
+        * i387-tdep.c (i387_supply_register): When called with NULL as a
+       buffer, mark the register as not provided (to mirror the behavior
+       of supply_register).
+        (i387_supply_fxsave): Ditto.
+        (i387_supply_fsave): Ditto (inherits the behavior from
+       i387_supply_register).
+
 2002-11-09  Klee Dienes  <kdienes@apple.com>
 
        * blockframe.c (sigtramp_saved_pc): Use
 
 void
 i387_supply_register (int regnum, char *fsave)
 {
+  if (fsave == NULL)
+    {
+      supply_register (regnum, NULL);
+      return;
+    }
+
   /* Most of the FPU control registers occupy only 16 bits in
      the fsave area.  Give those a special treatment.  */
   if (regnum >= FPC_REGNUM
 
   for (i = FP0_REGNUM; i <= last_regnum; i++)
     {
+      if (fxsave == NULL)
+       {
+         supply_register (i, NULL);
+         continue;
+       }
+
       /* Most of the FPU control registers occupy only 16 bits in
         the fxsave area.  Give those a special treatment.  */
       if (i >= FPC_REGNUM && i < XMM0_REGNUM