diff options
author | Mark Kettenis <kettenis@gnu.org> | 2004-01-04 12:18:25 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2004-01-04 12:18:25 +0000 |
commit | 7010866cd9656b587c6590a986cde17bb02da2f0 (patch) | |
tree | a6bb3ca8fc8259f3db9d5d80d7309fd4f0dc47ed /gdb/sparc64-tdep.c | |
parent | 064d935bcec64b397170b73a116dd037272f6b7f (diff) | |
download | gdb-7010866cd9656b587c6590a986cde17bb02da2f0.tar.gz |
* sparc64-tdep.c (sparc64_store_arguments): Fix handling of
`float' arguments.
Diffstat (limited to 'gdb/sparc64-tdep.c')
-rw-r--r-- | gdb/sparc64-tdep.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/sparc64-tdep.c b/gdb/sparc64-tdep.c index 7e707918174..2e56ec972a1 100644 --- a/gdb/sparc64-tdep.c +++ b/gdb/sparc64-tdep.c @@ -911,10 +911,11 @@ sparc64_store_arguments (struct regcache *regcache, int nargs, 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 |