From 7be0363d534f309316f6fc77a4bafec2f34a4a8f Mon Sep 17 00:00:00 2001 From: Julian Seward Date: Fri, 14 Apr 2006 11:13:59 +0000 Subject: [PATCH] Un-break core dumping on ppc32-linux. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5852 --- include/vki-ppc32-linux.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/vki-ppc32-linux.h b/include/vki-ppc32-linux.h index db4fc762ac..8e9afa4781 100644 --- a/include/vki-ppc32-linux.h +++ b/include/vki-ppc32-linux.h @@ -198,6 +198,13 @@ struct vki_pt_regs { unsigned long dar; /* Fault registers */ unsigned long dsisr; /* on 4xx/Book-E used for ESR */ unsigned long 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. */ + unsigned long pad[4]; }; #define vki_user_regs_struct vki_pt_regs -- 2.47.2