qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-ppc] [PATCH] target/ppc: Fix size of struct PPCElfPrstatus


From: David Gibson
Subject: Re: [Qemu-ppc] [PATCH] target/ppc: Fix size of struct PPCElfPrstatus
Date: Tue, 11 Apr 2017 16:15:35 +1000
User-agent: Mutt/1.8.0 (2017-02-23)

On Tue, Apr 11, 2017 at 04:04:56PM +1000, Anton Blanchard wrote:
> From: Anton Blanchard <address@hidden>
> 
> gdb refuses to parse QEMU memory dumps because struct PPCElfPrstatus
> is the wrong size. Fix it.
> 
> Signed-off-by: Anton Blanchard <address@hidden>
> Fixes: e62fbc54d459 ("target-ppc: dump-guest-memory support")

Applied to ppc-for-2.10, thanks.

> ---
>  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 28d9cc7d79..8e9397aa58 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;
>  
>  

-- 
David Gibson                    | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au  | minimalist, thank you.  NOT _the_ _other_
                                | _way_ _around_!
http://www.ozlabs.org/~dgibson

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]