Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/ptrace.h
Show All 31 Lines | |||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef _SYS_PTRACE_H_ | #ifndef _SYS_PTRACE_H_ | ||||
#define _SYS_PTRACE_H_ | #define _SYS_PTRACE_H_ | ||||
#include <sys/signal.h> | #include <sys/signal.h> | ||||
#include <sys/param.h> | #include <sys/param.h> | ||||
#include <machine/reg.h> | #include <machine/reg.h> | ||||
kib: Why this include is needed in public header ? I believe it is fair to require users to… | |||||
#define PT_TRACE_ME 0 /* child declares it's being traced */ | #define PT_TRACE_ME 0 /* child declares it's being traced */ | ||||
#define PT_READ_I 1 /* read word in child's I space */ | #define PT_READ_I 1 /* read word in child's I space */ | ||||
#define PT_READ_D 2 /* read word in child's D space */ | #define PT_READ_D 2 /* read word in child's D space */ | ||||
/* was PT_READ_U 3 * read word in child's user structure */ | /* was PT_READ_U 3 * read word in child's user structure */ | ||||
#define PT_WRITE_I 4 /* write word in child's I space */ | #define PT_WRITE_I 4 /* write word in child's I space */ | ||||
#define PT_WRITE_D 5 /* write word in child's D space */ | #define PT_WRITE_D 5 /* write word in child's D space */ | ||||
/* was PT_WRITE_U 6 * write word in child's user structure */ | /* was PT_WRITE_U 6 * write word in child's user structure */ | ||||
Show All 31 Lines | |||||
#define PT_SETREGS 34 /* set general-purpose registers */ | #define PT_SETREGS 34 /* set general-purpose registers */ | ||||
#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) */ | ||||
#define PT_GETREGSET 42 /* Get a target register set */ | |||||
#define PT_SETREGSET 43 /* Set a target register set */ | |||||
#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 | ||||
▲ Show 20 Lines • Show All 163 Lines • Show Last 20 Lines |
Why this include is needed in public header ? I believe it is fair to require users to #include <sys/uio.h> if they need PT_GETREGSET.