This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Fix UltraSPARC `float' argument bug
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 4 Jan 2004 13:19:25 +0100 (CET)
- Subject: [PATCH] Fix UltraSPARC `float' argument bug
Committed,
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* sparc64-tdep.c (sparc64_store_arguments): Fix handling of
`float' arguments.
Index: sparc64-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/sparc64-tdep.c,v
retrieving revision 1.7
diff -u -p -r1.7 sparc64-tdep.c
--- sparc64-tdep.c 3 Jan 2004 23:24:57 -0000 1.7
+++ sparc64-tdep.c 4 Jan 2004 12:17:52 -0000
@@ -911,10 +911,11 @@ sparc64_store_arguments (struct regcache
undefined." Even though the psABI says that "the
left half is undefined", set it to zero here. */
memset (buf, 0, 4);
- valbuf = memcpy (buf + 4, valbuf, 4);
+ memcpy (buf + 4, valbuf, 4);
+ valbuf = buf;
len = 8;
if (element < 16)
- regnum = SPARC64_D0_REGNUM;
+ regnum = SPARC64_D0_REGNUM + element;
}
}
else