From: Kevin Buettner Date: Fri, 9 Aug 2002 00:45:10 +0000 (+0000) Subject: * doublest.c (store_floating): Avoid floatformat_from_doublest() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b30590dca40a659df9fa21c7db85e596639b446a;p=binutils-gdb.git * doublest.c (store_floating): Avoid floatformat_from_doublest() assertion failure by returning early after a warning. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d56707236da..496d06fca47 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-08-08 Kevin Buettner + + * doublest.c (store_floating): Avoid floatformat_from_doublest() + assertion failure by returning early after a warning. + 2002-08-08 Kevin Buettner * mips-tdep.c (mips_find_saved_regs): Make static. 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);