From: Thierry Fauck <[email protected]>

Signed-off-by: Thierry Fauck <[email protected]>

        modified:   sysdeps/linux-gnu/ppc/fetch.c
---
 sysdeps/linux-gnu/ppc/fetch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sysdeps/linux-gnu/ppc/fetch.c b/sysdeps/linux-gnu/ppc/fetch.c
index 860cb86..133f953 100644
--- a/sysdeps/linux-gnu/ppc/fetch.c
+++ b/sysdeps/linux-gnu/ppc/fetch.c
@@ -610,7 +610,7 @@ arch_fetch_retval(struct fetch_context *ctx, enum tof type,
                assert(info->type == ARGTYPE_STRUCT);
 
                uint64_t addr;
-               if ( ctx->regs.r32[1] == 0 )
+               if ( ppc64_call_elf_abi != 2 || ctx->regs.r32[1] == 0 )
                         addr = read_gpr(ctx, proc, 3);
                 else
                         addr = read_gpr(ctx, proc, 4);
-- 
1.8.3.1


_______________________________________________
Ltrace-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/ltrace-devel

Reply via email to