Add PTRACE_GET_SYSCALL_INFO from Linux 5.3 to sys/ptrace.h

Dmitry V. Levin ldv@altlinux.org
Mon Oct 14 22:44:00 GMT 2019


On Mon, Oct 14, 2019 at 09:49:22PM +0000, Joseph Myers wrote:
> Linux 5.3 adds a PTRACE_GET_SYSCALL_INFO constant, with an associated
> structure and PTRACE_SYSCALL_INFO_* constants.
> 
> This patch adds these to sys/ptrace.h in glibc
> (PTRACE_GET_SYSCALL_INFO in each architecture version, the rest in
> bits/ptrace-shared.h).  As with previous such constants and associated
> structures, the glibc version of the structure is named struct
> __ptrace_syscall_info.
> 
> Tested for x86_64, and with build-many-glibcs.py.

This is obviously correct, with one exception: on those architectures
where we do #undef PTRACE_GET_SYSCALL_INFO, we have to #undef
PTRACE_SYSCALL_INFO_* as well.

Besides that,
Reviewed-by: Dmitry V. Levin <ldv@altlinux.org>


-- 
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/20191014/6428d861/attachment.sig>


More information about the Libc-alpha mailing list