Messages in this thread | | | Date | Wed, 8 Feb 2012 23:20:19 +0400 | From | Cyrill Gorcunov <> | Subject | Re: [PATCH] ptrace: add ability to get clear_tid_address |
| |
On Wed, Feb 08, 2012 at 08:02:50PM +0100, Oleg Nesterov wrote: > > Right, as I said. :-) I saw that a watchpoint trap isn't reported either > > for the CLONE_CHILD_SETTID case (that is, within clone, when the kernel > > writes the tid to the memory address passed in to the clone syscall). > > Yes. But in this case the new thread has no bps even if it is auto- > attached. > > IOW, I think that hw bp can detect the write from the kernel space, > but I didn't check.
yes, that's how kgdb work (if only I'm not missing something obvious)
Cyrill
| |