summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-06-24 19:36:41 +0000
committerMark Kettenis <kettenis@gnu.org>2004-06-24 19:36:41 +0000
commit1ddfa3e608ab802808fc508bab3d71ac27dd2c6c (patch)
treec73ac624a953b156564eab7ae618dae966ec098a
parentfb9ca7d52c5cd06f5fc659ee8c04cee278721a17 (diff)
downloadgdb-1ddfa3e608ab802808fc508bab3d71ac27dd2c6c.tar.gz
* sparc64-tdep.c (sparc64_store_arguments): Fix passing
quad-precision floating point arguments in registers.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/sparc64-tdep.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d0e5fd49860..51e746b1277 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2004-06-24 Mark Kettenis <kettenis@gnu.org>
+ * sparc64-tdep.c (sparc64_store_arguments): Fix passing
+ quad-precision floating point arguments in registers.
+
+2004-06-24 Mark Kettenis <kettenis@gnu.org>
+
From Michael Mueller <m.mueller99@kay-mueller.de>:
* sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
account.
diff --git a/gdb/sparc64-tdep.c b/gdb/sparc64-tdep.c
index 1fbb442515c..a4398d57adb 100644
--- a/gdb/sparc64-tdep.c
+++ b/gdb/sparc64-tdep.c
@@ -931,7 +931,7 @@ sparc64_store_arguments (struct regcache *regcache, int nargs,
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);
}
}