On Tue, Jun 06, 2017 at 12:44:04PM +0200, Andreas Schwab wrote: > On Jun 06 2017, Stefan Liebler wrote: [...] > > +static void > > +tracer_func (int pid) > > +{ > > + unsigned long last_break; > > + ptrace_area parea; > > + gregset_t regs; > > + int status; > > + > > + while (1) > > + { > > + /* Wait for the tracee to be stopped or exited. */ > > + wait (&status); > > Doesn't that need to use WUNTRACED? No, it doesn't: as the tracee has called PTRACE_TRACEME before raising SIGSTOP, there is going to be a ptrace signal delivery stop. -- ldv