mirror of
git://git.musl-libc.org/musl
synced 2024-12-13 18:25:52 +00:00
df6d9450ea
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).
10 lines
315 B
C
10 lines
315 B
C
#define PTRACE_GET_THREAD_AREA 25
|
|
#define PTRACE_SET_THREAD_AREA 26
|
|
#define PTRACE_PEEKTEXT_3264 0xc0
|
|
#define PTRACE_PEEKDATA_3264 0xc1
|
|
#define PTRACE_POKETEXT_3264 0xc2
|
|
#define PTRACE_POKEDATA_3264 0xc3
|
|
#define PTRACE_GET_THREAD_AREA_3264 0xc4
|
|
#define PTRACE_GET_WATCH_REGS 0xd0
|
|
#define PTRACE_SET_WATCH_REGS 0xd1
|