[PATCH 54] PTRACE_SINGLESTEP shouldn't bypass SYSCALL_EXIT

2009-09-23 Thread Oleg Nesterov
The new test ptrace-tests/tests/step-from-clone.c fails. I didn't know that PTRACE_SINGLESTEP is not user-mode only. I thought that the next stop should happen only after return to user-mode. However, the current behaviour is that PTRACE_SINGLESTEP acts like PTRACE_SYSCALL (but see below), if

Re: [PATCH 54] PTRACE_SINGLESTEP shouldn't bypass SYSCALL_EXIT

2009-09-23 Thread Roland McGrath
However, the current behaviour is that PTRACE_SINGLESTEP acts like PTRACE_SYSCALL (but see below), if the tracee is not going to return to user-mode yet. Say, PTRACE_EVENT_VFORK. Not really. Given what I just wrote, I'm not sure if you want me to merge these. I'm sure you'll be changing it

Re: [PATCH 54] PTRACE_SINGLESTEP shouldn't bypass SYSCALL_EXIT

2009-09-23 Thread Oleg Nesterov
On 09/23, Roland McGrath wrote: However, the current behaviour is that PTRACE_SINGLESTEP acts like PTRACE_SYSCALL (but see below), if the tracee is not going to return to user-mode yet. Say, PTRACE_EVENT_VFORK. Not really. Given what I just wrote, I'm not sure if you want me to merge