From: Mark Kettenis Date: Sun, 13 Jul 2003 22:04:19 +0000 (+0000) Subject: * x86-64-tdep.c (x86_64_store_return_value): Use X-Git-Tag: cagney_x86i386-20030821-branchpoint~80 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c3fb17bc45ecf0ec38f727980ba2c77bb4793842;p=thirdparty%2Fbinutils-gdb.git * x86-64-tdep.c (x86_64_store_return_value): Use regcache_cooked_write_part instead of regcache_cooked_write. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e3f02db64db..0d073e9a298 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2003-07-13 Mark Kettenis + + * x86-64-tdep.c (x86_64_store_return_value): Use + regcache_cooked_write_part instead of regcache_cooked_write. + 2003-07-11 Theodore A. Roth * Makefile.in (install-only): Quote sed expression when generating diff --git a/gdb/x86-64-tdep.c b/gdb/x86-64-tdep.c index f4ceee867ba..83d0ca06134 100644 --- a/gdb/x86-64-tdep.c +++ b/gdb/x86-64-tdep.c @@ -799,7 +799,8 @@ x86_64_store_return_value (struct type *type, struct regcache *regcache, else if (TYPE_CODE_FLT == TYPE_CODE (type)) { /* Handle double and float variables. */ - regcache_cooked_write (regcache, X86_64_XMM0_REGNUM, valbuf); + regcache_cooked_write_part (regcache, X86_64_XMM0_REGNUM, + 0, len, valbuf); } /* XXX: What about complex floating point types? */ else