would have the same problem with a 32bit x86 strace trying to trace a
64bit process ...
maybe the easy answer is that 64-bit can trace m32/m64/mx32, and an
x32-bit can only trace m32/mx32 for now ...
-mike
I believe so.
--
H.J.
so no one is currently looking at it, and we're fine with the initial
port not supporting tracing 64bit binaries from a x32 strace.
-mike
From: Mike Frysinger <vap...@gentoo.org>
Date: Mon, 19 Dec 2011 20:57:32 -0500
Subject: [PATCH] x86-64: use __u64 for pt_regs
The x32 userspace still has 64bit regs, so the registers have to be
declared explicitly as 64bit values rather than relying on unsigned
long being 8 bytes (which it isn't on x32).
Signed-off-by: Mike Frysinger <vap...@gentoo.org>
---
arch/x86/include/asm/ptrace.h | 42 ++++++++++++++++++++--------------------
1 files changed, 21 insertions(+), 21 deletions(-)
I think that's fine... in an all-x32 environment there won't be any, and
if there are 64-bit binaries involved then it should be okay to say that
you have to have a 64-bit strace; this is consistent with an i386
strace, I believe.
-hpa
--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.
yeah sorry, i meant PTRACE_GETREGS. the one where you pass it struct pt_regs.
when i look at the ptrace code, there doesn't seem to be x32-specific
paths. it seems to re-use the existing x86_64 code paths. so forcing
x32 to only support PTRACE_GETREGSET would add code overhead rather
than remove it :).
-mike
if you want to use x32 as your desktop, there commonly will still be a
need for either x86_64 or i386 in supplemental positions, and i
imagine people would prefer the former when possible. i wouldn't be
surprised if it flash/hulu/skype took time (if ever) to get a x32
build. i also wonder about the nvidia-drivers (i.e. hardware
accelerated OpenGL) and if it will get x32 userland support ...
not saying you're wrong or anything, just that the desktop world
carries a lot of annoying baggage for a not insignificant number of
users :(
-mike
I'm not disagreeing, but if the x86-64 libraries are available then it
shouldn't be a problem for strace to be x86-64.
-hpa