Thanks Roland.
But now I am even more confused...
On 09/20, Roland McGrath wrote:
- PTRACE_SINGLESTEP does user_enable_single_step()
- when the tracee returns to user mode, the next instruction
causes exception, do_debug()-send_sigtrap() sends SIGTRAP
- the tracee
On 09/21, Oleg Nesterov wrote:
However,
int main(void)
{
assert(0 == prctl(666));
printf(after prctl\n);
return 0;
}
dies with Trace/breakpoint trap, dmesg says:
prctl: before=10246
prctl: after=10346
On 09/21, Oleg Nesterov wrote:
Yes, I modified the patch a bit (see below) to print the syscall number,
Forgot to attach the patch. I guess it is not really needed, but
just in case.
Oleg.
--- TTT/kernel/sys.c~TF_FBG 2009-06-17 14:11:26.0 +0200
+++ TTT/kernel/sys.c2009-09-21