This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] S390: Sync ptrace.h with kernel. [BZ #21539]
- From: Andreas Schwab <schwab at suse dot de>
- To: Stefan Liebler <stli at linux dot vnet dot ibm dot com>
- Cc: libc-alpha at sourceware dot org, "Carlos O'Donell" <carlos at redhat dot com>
- Date: Tue, 06 Jun 2017 12:44:04 +0200
- Subject: Re: [PATCH] S390: Sync ptrace.h with kernel. [BZ #21539]
- Authentication-results: sourceware.org; auth=none
- References: <bda685cb-c5c4-ab27-47e0-1e95223275f9@linux.vnet.ibm.com>
On Jun 06 2017, Stefan Liebler <stli@linux.vnet.ibm.com> wrote:
> Hi,
>
> this patch removes PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS
> and PTRACE_SETFPREGS as these requests does not exist on s390 kernel.
Since it is an API change it should probably get a NEWS entry.
> +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?
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."