From 53657d9a25ad6de011e8897a51be399b3970e4dc Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Fri, 11 Aug 2017 15:47:22 +0200 Subject: [PATCH 3/3] target/ppc: Fix size of struct PPCElfPrstatus RH-Author: Laurent Vivier Message-id: <20170811154722.4240-1-lvivier@redhat.com> Patchwork-id: 75942 O-Subject: [RHEL-ALT-7.4 qemu-kvm PATCH] target/ppc: Fix size of struct PPCElfPrstatus Bugzilla: 1480418 RH-Acked-by: Thomas Huth RH-Acked-by: David Gibson RH-Acked-by: Miroslav Rezanina From: Anton Blanchard gdb refuses to parse QEMU memory dumps because struct PPCElfPrstatus is the wrong size. Fix it. Signed-off-by: Anton Blanchard Fixes: e62fbc54d459 ("target-ppc: dump-guest-memory support") Signed-off-by: David Gibson (cherry picked from commit b88290cd9ea474fea38c4733f365a3cd2519723e) Signed-off-by: Laurent Vivier Signed-off-by: Miroslav Rezanina --- target/ppc/arch_dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/ppc/arch_dump.c b/target/ppc/arch_dump.c index 28d9cc7..8e9397a 100644 --- a/target/ppc/arch_dump.c +++ b/target/ppc/arch_dump.c @@ -50,7 +50,7 @@ struct PPCUserRegStruct { struct PPCElfPrstatus { char pad1[112]; struct PPCUserRegStruct pr_reg; - reg_t pad2[4]; + char pad2[40]; } QEMU_PACKED; -- 1.8.3.1