add support for arch-specific ptrace command macros
authorSzabolcs Nagy <nsz@port70.net>
Sun, 8 Jul 2018 13:16:54 +0000 (15:16 +0200)
committerRich Felker <dalias@aerifal.cx>
Wed, 18 Jul 2018 02:25:08 +0000 (22:25 -0400)
commitdf6d9450ea19fd71e52cf5cdb4c85beb73066394
tree34c80d0c750ec97ce092b1fb0cdf7251f133d16e
parent7ea32a8282b743bb1637b9e1da5f76dcd472a704
add support for arch-specific ptrace command macros

sys/ptrace.h is target specific, use bits/ptrace.h to add target
specific macro definitions.

these macros are kept in the generic sys/ptrace.h even though some
targets don't support them:

PTRACE_GETREGS
PTRACE_SETREGS
PTRACE_GETFPREGS
PTRACE_SETFPREGS
PTRACE_GETFPXREGS
PTRACE_SETFPXREGS

so no macro definition got removed in this patch on any target. only
s390x has a numerically conflicting macro definition (PTRACE_SINGLEBLOCK).

the PT_ aliases follow glibc headers, otherwise the definitions come
from linux uapi headers except ones that are skipped in glibc and
there is no real kernel support (s390x PTRACE_*_AREA) or need special
type definitions (mips PTRACE_*_WATCH_*) or only relevant for linux
2.4 compatibility (PTRACE_OLDSETOPTIONS).
12 files changed:
arch/generic/bits/ptrace.h [new file with mode: 0644]
arch/i386/bits/ptrace.h [new file with mode: 0644]
arch/m68k/bits/ptrace.h [new file with mode: 0644]
arch/mips/bits/ptrace.h [new file with mode: 0644]
arch/mips64/bits/ptrace.h [new file with mode: 0644]
arch/mipsn32/bits/ptrace.h [new file with mode: 0644]
arch/powerpc/bits/ptrace.h [new file with mode: 0644]
arch/powerpc64/bits/ptrace.h [new file with mode: 0644]
arch/s390x/bits/ptrace.h [new file with mode: 0644]
arch/x32/bits/ptrace.h [new file with mode: 0644]
arch/x86_64/bits/ptrace.h [new file with mode: 0644]
include/sys/ptrace.h