[PATCH] Linux x86/x86_64: <sys/ptrace.h> does not provide some request constants [BZ #22433]
Dmitry V. Levin
ldv@altlinux.org
Wed Dec 20 22:55:00 GMT 2017
On Wed, Dec 20, 2017 at 10:50:01PM +0000, Joseph Myers wrote:
> On Wed, 20 Dec 2017, Martin Balao wrote:
>
> > * sysdeps/unix/sysv/linux/x86_64/sys/ptrace.h: New file.
> > Constants added: PTRACE_GET_THREAD_AREA,
> > PTRACE_SET_THREAD_AREA,
> > PTRACE_ARCH_PRCTL, PTRACE_SYSEMU and PTRACE_SYSEMU_SINGLESTEP.
>
> There must never be any installed headers specific to x86_64 or i386,
> because headers installed for one multilib configuration may be used for
> all three. Thus, you need a single header for x86, and if there are any
> differences between x86_64 (64-bit), x86_64 (x32) and i386, that header
> must contain appropriate conditionals.
btw, all these sysdeps/unix/sysv/linux/*/sys/ptrace.h files share a lot
of common definitions, can we do better than multiplying these files
this way?
--
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/20171220/094341f1/attachment.sig>
More information about the Libc-alpha
mailing list