]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Un-break coredumping on ppc64-linux. Finally fixes #121617.
authorJulian Seward <jseward@acm.org>
Sun, 21 May 2006 00:51:28 +0000 (00:51 +0000)
committerJulian Seward <jseward@acm.org>
Sun, 21 May 2006 00:51:28 +0000 (00:51 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5907

include/vki-ppc64-linux.h

index 20e162e8dd74a830d30a9f6df6b3e42cfb888d5e..afb865e19eac9908d5150c96f313e2fc9450da8f 100644 (file)
@@ -193,6 +193,14 @@ struct vki_pt_regs {
   VKI_PPC_REG dar;            /* Fault registers */
   VKI_PPC_REG dsisr;
   VKI_PPC_REG result;         /* Result of a system call */
+
+  /* Not in kernel's definition, but apparently needed to stop
+     assertion at coredump-elf.c:267 firing.  These padding words make
+     the struct have the same size as a 'vki_elf_greg_t'.  See message
+     from Ghassan Hammouri on valgrind-developers on 6 April 06, and
+     also the analogous kludge for ppc32-linux (svn r5852 and bug
+     #121617). */
+  unsigned long pad[4];
 };
 
 /* Kludge?  I don't know where this came from or if it is right. */