123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- #ifndef _SYS_PTRACE_H
- #define _SYS_PTRACE_H 1
- #include <features.h>
- __BEGIN_DECLS
- enum __ptrace_request
- {
-
- PTRACE_TRACEME = 0,
- #define PT_TRACE_ME PTRACE_TRACEME
-
- PTRACE_PEEKTEXT = 1,
- #define PT_READ_I PTRACE_PEEKTEXT
-
- PTRACE_PEEKDATA = 2,
- #define PT_READ_D PTRACE_PEEKDATA
-
- PTRACE_PEEKUSER = 3,
- #define PT_READ_U PTRACE_PEEKUSER
-
- PTRACE_POKETEXT = 4,
- #define PT_WRITE_I PTRACE_POKETEXT
-
- PTRACE_POKEDATA = 5,
- #define PT_WRITE_D PTRACE_POKEDATA
-
- PTRACE_POKEUSER = 6,
- #define PT_WRITE_U PTRACE_POKEUSER
-
- PTRACE_CONT = 7,
- #define PT_CONTINUE PTRACE_CONT
-
- PTRACE_KILL = 8,
- #define PT_KILL PTRACE_KILL
-
- PTRACE_SINGLESTEP = 9,
- #define PT_STEP PTRACE_SINGLESTEP
-
- PTRACE_GETREGS = 12,
- #define PT_GETREGS PTRACE_GETREGS
-
- PTRACE_SETREGS = 13,
- #define PT_SETREGS PTRACE_SETREGS
-
- PTRACE_GETFPREGS = 14,
- #define PT_GETFPREGS PTRACE_GETFPREGS
-
- PTRACE_SETFPREGS = 15,
- #define PT_SETFPREGS PTRACE_SETFPREGS
-
- PTRACE_ATTACH = 16,
- #define PT_ATTACH PTRACE_ATTACH
-
- PTRACE_DETACH = 17,
- #define PT_DETACH PTRACE_DETACH
-
- PTRACE_SYSCALL = 24
- #define PT_SYSCALL PTRACE_SYSCALL
- };
- extern long int ptrace (enum __ptrace_request __request, ...) __THROW;
- __END_DECLS
- #endif
|