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: Carlos O'Donell <carlos at redhat dot com>
- To: Stefan Liebler <stli at linux dot vnet dot ibm dot com>, libc-alpha at sourceware dot org
- Date: Tue, 18 Jul 2017 10:12:33 -0400
- 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> <20170613200522.GA14306@altlinux.org> <a70194fb-d96c-d22f-7aba-36be9685d421@linux.vnet.ibm.com> <20170718102039.GA20971@altlinux.org> <2e9fcbdc-4060-5e1d-8866-82aaca9316b1@linux.vnet.ibm.com>
On 07/18/2017 09:41 AM, Stefan Liebler wrote:
>> $ gcc -c -xc -o/dev/null - <<'EOF'
>> #include <asm/ptrace.h>
>> #include <sys/ptrace.h>
>> EOF
> Is this order required?
Per the synchronization headers strategy for glibc we try to support *both*
orders for important headers where possible.
https://sourceware.org/glibc/wiki/Synchronizing_Headers
> I've tried it on x86_64 RHEL 7.3:
> In file included from /usr/include/asm/ptrace.h:5:0,
> from <stdin>:1:
> /usr/include/sys/ptrace.h:74:4: error: expected identifier before numeric constant
> PTRACE_GETREGS = 12,
> ^
This is a known issue. It is known that linux/ptrace.h and sys/ptrace.h do not really
work well together. We need to fix it.
--
Cheers,
Carlos.