[Ada] GDB crash during "finish" of function with out parameters
[deliverable/binutils-gdb.git] / gdb / sparc64-tdep.c
index 4c05277bf305e287fdbbcf04a3f6dc569db9638b..a23740e39cb6ee6bebe74f2298ae88c753eec173 100644 (file)
@@ -890,7 +890,8 @@ sparc64_store_arguments (struct regcache *regcache, int nargs,
          /* Structure, Union or long double Complex arguments.  */
          gdb_assert (len <= 16);
          memset (buf, 0, sizeof (buf));
-         valbuf = memcpy (buf, valbuf, len);
+         memcpy (buf, valbuf, len);
+         valbuf = buf;
 
          if (element % 2 && sparc64_16_byte_align_p (type))
            element++;
This page took 0.024074 seconds and 4 git commands to generate.