From c3fb17bc45ecf0ec38f727980ba2c77bb4793842 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sun, 13 Jul 2003 22:04:19 +0000 Subject: [PATCH] * x86-64-tdep.c (x86_64_store_return_value): Use regcache_cooked_write_part instead of regcache_cooked_write. --- gdb/ChangeLog | 5 +++++ gdb/x86-64-tdep.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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 -- 2.47.3