lkml.org 
[lkml]   [2012]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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


\
 
 \ /
  Last update: 2012-02-08 20:23    [W:0.050 / U:0.748 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site