[PATCH] Use PTRACE_GETREGS on i386
Dmitry V. Levin
ldv at altlinux.org
Thu Aug 25 10:39:20 UTC 2011
On Thu, Aug 25, 2011 at 12:10:06PM +0200, Denys Vlasenko wrote:
> --- strace.5/syscall.c 2011-08-25 10:39:36.000000000 +0200
> +++ strace.6/syscall.c 2011-08-25 11:51:32.148543603 +0200
> @@ -716,7 +716,28 @@ struct tcb *tcp_last = NULL;
>
> #ifdef LINUX
> # if defined (I386)
> -static long eax;
> +struct i386_user_regs_struct {
struct pt_regs is already defined in linux-2.2.26/include/asm-i386/ptrace.h
so I think we can safely assume that #include <linux/ptrace.h> is sufficient.
I'll look at the rest a bit later today.
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20110825/b8d8989d/attachment.bin>
More information about the Strace-devel
mailing list