>From 99c85693a54e3da6c0e45127e25331766c071c2a Mon Sep 17 00:00:00 2001
From: Andreas Schwab <[email protected]>
Date: Fri, 28 Aug 2009 19:36:20 +0200
Subject: [PATCH] Zero-extend 32-bit addresses when printing argv array.

(printargv): Zero-extend 32-bit addresses.
Fixes RH#519480 "64-bit strace is lazy on execve of 32-bit
process".
---
 process.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/process.c b/process.c
index 45ba33b..23bd413 100644
--- a/process.c
+++ b/process.c
@@ -1776,8 +1776,8 @@ struct tcb *tcp;
 long addr;
 {
        union {
-               int p32;
-               long p64;
+               unsigned int p32;
+               unsigned long p64;
                char data[sizeof(long)];
        } cp;
        char *sep;
-- 
1.6.4


Andreas.

-- 
Andreas Schwab, [email protected]
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84  5EC7 45C6 250E 6F00 984E
"And now for something completely different."

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Strace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to