summaryrefslogtreecommitdiff
path: root/gdb/doublest.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2002-08-09 00:45:10 +0000
committerKevin Buettner <kevinb@redhat.com>2002-08-09 00:45:10 +0000
commit22534b811738ff8a2cf5d4d5683aca184f358e20 (patch)
treefd4b87a851c383b55c3739e656c5a5e310d8dde2 /gdb/doublest.c
parentb9908670e7ff72b374bcbb7fada04b3d4a5b18db (diff)
downloadgdb-22534b811738ff8a2cf5d4d5683aca184f358e20.tar.gz
* doublest.c (store_floating): Avoid floatformat_from_doublest()
assertion failure by returning early after a warning.
Diffstat (limited to 'gdb/doublest.c')
-rw-r--r--gdb/doublest.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/doublest.c b/gdb/doublest.c
index a4b4b763f7f..6e96d78f0c0 100644
--- a/gdb/doublest.c
+++ b/gdb/doublest.c
@@ -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);