#ifndef _SYS_PTRACE_H
#define _SYS_PTRACE_H 1
#include
__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_GETFPXREGS = 18,
#define PT_GETFPXREGS PTRACE_GETFPXREGS
PTRACE_SETFPXREGS = 19,
#define PT_SETFPXREGS PTRACE_SETFPXREGS
PTRACE_SYSCALL = 24
#define PT_SYSCALL PTRACE_SYSCALL
};
extern long int ptrace (enum __ptrace_request __request, ...) __THROW;
__END_DECLS
#endif
|