Re: syscall-reset: First vs. second PTRACE_SYSCALL

2008-03-22 Thread Roland McGrath
> you do one PTRACE_SYSCALL + WAITPID and then PEEKUSER %rax getting -ENOSYS. > -ENOSYS is a syscall return value which should be returned after the _second_ > PTRACE_SYSCALL - on the syscall exit, not on the syscall entry, shouldn't be? > I would expect PEEKUSER %rax should still return -23 on fir

syscall-reset: First vs. second PTRACE_SYSCALL

2008-03-22 Thread Jan Kratochvil
Hi Roland, in http://sources.redhat.com/cgi-bin/cvsweb.cgi/~checkout~/tests/ptrace-tests/tests/syscall-reset.c?cvsroot=systemtap you do one PTRACE_SYSCALL + WAITPID and then PEEKUSER %rax getting -ENOSYS. -ENOSYS is a syscall return value which should be returned after the _second_ PTRACE