From b30590dca40a659df9fa21c7db85e596639b446a Mon Sep 17 00:00:00 2001 From: Kevin Buettner Date: Fri, 9 Aug 2002 00:45:10 +0000 Subject: [PATCH] * doublest.c (store_floating): Avoid floatformat_from_doublest() assertion failure by returning early after a warning. --- gdb/ChangeLog | 5 +++++ gdb/doublest.c | 1 + 2 files changed, 6 insertions(+) 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); -- 2.30.2