diff --git a/gdb/x86-64-tdep.c b/gdb/x86-64-tdep.c index 8bb507cd48..a93af05dc8 100644 --- a/gdb/x86-64-tdep.c +++ b/gdb/x86-64-tdep.c @@ -788,7 +788,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_part (regcache, X86_64_XMM0_REGNUM, 0, len, buf); + regcache_cooked_write_part (regcache, X86_64_XMM0_REGNUM, + 0, len, valbuf); } /* XXX: What about complex floating point types? */ else