[PATCH] S390: Sync ptrace.h with kernel. [BZ #21539]
Dmitry V. Levin
ldv@altlinux.org
Tue Jun 6 10:58:00 GMT 2017
On Tue, Jun 06, 2017 at 12:44:04PM +0200, Andreas Schwab wrote:
> On Jun 06 2017, Stefan Liebler <stli@linux.vnet.ibm.com> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20170606/c30a9217/attachment.sig>
More information about the Libc-alpha
mailing list