13 lines
597 B
Diff
13 lines
597 B
Diff
Index: gdb-7.4.50.20111218/gdb/sparc-tdep.c
|
|
===================================================================
|
|
--- gdb-7.4.50.20111218.orig/gdb/sparc-tdep.c 2011-09-28 19:59:42.000000000 +0200
|
|
+++ gdb-7.4.50.20111218/gdb/sparc-tdep.c 2011-12-19 01:25:29.294046199 +0100
|
|
@@ -1316,6 +1316,7 @@ sparc32_store_return_value (struct type
|
|
if (sparc_floating_p (type) || sparc_complex_floating_p (type))
|
|
{
|
|
/* Floating return values. */
|
|
+ len = (len <= 8) ? len : 8;
|
|
memcpy (buf, valbuf, len);
|
|
regcache_cooked_write (regcache, SPARC_F0_REGNUM, buf);
|
|
if (len > 4)
|