Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/ptrace.h
Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | |||||
#define PT_GETFPREGS 35 /* get floating-point registers */ | #define PT_GETFPREGS 35 /* get floating-point registers */ | ||||
#define PT_SETFPREGS 36 /* set floating-point registers */ | #define PT_SETFPREGS 36 /* set floating-point registers */ | ||||
#define PT_GETDBREGS 37 /* get debugging registers */ | #define PT_GETDBREGS 37 /* get debugging registers */ | ||||
#define PT_SETDBREGS 38 /* set debugging registers */ | #define PT_SETDBREGS 38 /* set debugging registers */ | ||||
#define PT_VM_TIMESTAMP 40 /* Get VM version (timestamp) */ | #define PT_VM_TIMESTAMP 40 /* Get VM version (timestamp) */ | ||||
#define PT_VM_ENTRY 41 /* Get VM map (entry) */ | #define PT_VM_ENTRY 41 /* Get VM map (entry) */ | ||||
#ifdef _KERNEL | |||||
jhb: Perhaps #ifdef _KERNEL around this? | |||||
#define PT_GET_SC_ARGS_ALL 42 /* Used by linux(4) */ | |||||
#endif | |||||
#define PT_FIRSTMACH 64 /* for machine-specific requests */ | #define PT_FIRSTMACH 64 /* for machine-specific requests */ | ||||
#include <machine/ptrace.h> /* machine-specific requests, if any */ | #include <machine/ptrace.h> /* machine-specific requests, if any */ | ||||
/* Events used with PT_GET_EVENT_MASK and PT_SET_EVENT_MASK */ | /* Events used with PT_GET_EVENT_MASK and PT_SET_EVENT_MASK */ | ||||
#define PTRACE_EXEC 0x0001 | #define PTRACE_EXEC 0x0001 | ||||
#define PTRACE_SCE 0x0002 | #define PTRACE_SCE 0x0002 | ||||
#define PTRACE_SCX 0x0004 | #define PTRACE_SCX 0x0004 | ||||
#define PTRACE_SYSCALL (PTRACE_SCE | PTRACE_SCX) | #define PTRACE_SYSCALL (PTRACE_SCE | PTRACE_SCX) | ||||
▲ Show 20 Lines • Show All 160 Lines • Show Last 20 Lines |
Perhaps #ifdef _KERNEL around this?