This is the mail archive of the archer@sourceware.org mailing list for the Archer project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ptrace improvement: PTRACE_O_INHERIT


On 02/16, Roland McGrath wrote:
>
> > At first glance, this should be more or less straightforward. I think.
> >
> > (btw, this is obviously much more difficult with utrace, we can't
> >  utrace_attach_task() under tasklist).
>
> Indeed.  We might have to resort to a loop chasing untraced clones or
> something.

Or, attach can use a mutex in engine->data and synchronize with its
own report_clone/report_death callbacks. This makes attach O(n).
ugdb does this.

Oleg.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]