This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Fix UltraSPARC argument passing bug
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 24 Jun 2004 21:38:18 +0200 (CEST)
- Subject: [PATCH] Fix UltraSPARC argument passing bug
The code here was obviously wrong.
Committed,
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* sparc64-tdep.c (sparc64_store_arguments): Fix passing
quad-precision floating point arguments in registers.
Index: sparc64-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/sparc64-tdep.c,v
retrieving revision 1.13
diff -u -p -r1.13 sparc64-tdep.c
--- sparc64-tdep.c 24 Jun 2004 19:32:37 -0000 1.13
+++ sparc64-tdep.c 24 Jun 2004 19:34:24 -0000
@@ -931,7 +931,7 @@ sparc64_store_arguments (struct regcache
gdb_assert (element < 6);
regnum = SPARC_O0_REGNUM + element;
regcache_cooked_write (regcache, regnum, valbuf);
- regcache_cooked_write (regcache, regnum + 1, valbuf);
+ regcache_cooked_write (regcache, regnum + 1, valbuf + 8);
}
}