* doublest.c (store_floating): Avoid floatformat_from_doublest()
authorKevin Buettner <kevinb@redhat.com>
Fri, 9 Aug 2002 00:45:10 +0000 (00:45 +0000)
committerKevin Buettner <kevinb@redhat.com>
Fri, 9 Aug 2002 00:45:10 +0000 (00:45 +0000)
assertion failure by returning early after a warning.

gdb/ChangeLog
gdb/doublest.c

index d56707236da91df4cc9146f7471265390d1005e9..496d06fca4710e7d39726e91c7a42dc352f7fb52 100644 (file)
@@ -1,3 +1,8 @@
+2002-08-08  Kevin Buettner  <kevinb@redhat.com>
+
+       * doublest.c (store_floating): Avoid floatformat_from_doublest()
+       assertion failure by returning early after a warning.
+
 2002-08-08  Kevin Buettner  <kevinb@redhat.com>
 
        * mips-tdep.c (mips_find_saved_regs): Make static.
index a4b4b763f7fe7f0abc828c421fd39d16978903c8..6e96d78f0c0bc12ba519d458acd000497aed29b4 100644 (file)
@@ -681,6 +681,7 @@ store_floating (void *addr, int len, DOUBLEST val)
     {
       warning ("Can't store a floating-point number of %d bytes.", len);
       memset (addr, 0, len);
+      return;
     }
 
   floatformat_from_doublest (fmt, &val, addr);