From: Julian Seward Date: Sun, 21 May 2006 00:51:28 +0000 (+0000) Subject: Un-break coredumping on ppc64-linux. Finally fixes #121617. X-Git-Tag: svn/VALGRIND_3_2_0~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eef6a5669bf5bf5d9ebcfafccdcb5479f263f480;p=thirdparty%2Fvalgrind.git Un-break coredumping on ppc64-linux. Finally fixes #121617. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5907 --- diff --git a/include/vki-ppc64-linux.h b/include/vki-ppc64-linux.h index 20e162e8dd..afb865e19e 100644 --- a/include/vki-ppc64-linux.h +++ b/include/vki-ppc64-linux.h @@ -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. */