summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/alpha/include/ptrace.h11
-rw-r--r--sys/amd64/include/ptrace.h10
-rw-r--r--sys/i386/include/ptrace.h10
-rw-r--r--sys/ia64/include/ptrace.h8
-rw-r--r--sys/powerpc/include/ptrace.h10
-rw-r--r--sys/sparc64/include/ptrace.h10
-rw-r--r--sys/sys/ptrace.h9
7 files changed, 10 insertions, 58 deletions
diff --git a/sys/alpha/include/ptrace.h b/sys/alpha/include/ptrace.h
index 87a03af..93684b2 100644
--- a/sys/alpha/include/ptrace.h
+++ b/sys/alpha/include/ptrace.h
@@ -37,17 +37,8 @@
#ifndef _MACHINE_PTRACE_H_
#define _MACHINE_PTRACE_H_
-/*
- * Machine dependent trace commands.
- */
-#define PT_GETREGS (PT_FIRSTMACH + 1)
-#define PT_SETREGS (PT_FIRSTMACH + 2)
-#define PT_GETFPREGS (PT_FIRSTMACH + 3)
-#define PT_SETFPREGS (PT_FIRSTMACH + 4)
-
-#define FIX_SSTEP(p) ptrace_clear_single_step(p)
-
#ifdef _KERNEL
+#define FIX_SSTEP(p) ptrace_clear_single_step(p)
int ptrace_clear_single_step(struct thread *_p);
#endif
diff --git a/sys/amd64/include/ptrace.h b/sys/amd64/include/ptrace.h
index ea3477e..7f4e7db 100644
--- a/sys/amd64/include/ptrace.h
+++ b/sys/amd64/include/ptrace.h
@@ -37,14 +37,4 @@
#ifndef _MACHINE_PTRACE_H_
#define _MACHINE_PTRACE_H_
-/*
- * Machine dependent trace commands.
- */
-#define PT_GETREGS (PT_FIRSTMACH + 1)
-#define PT_SETREGS (PT_FIRSTMACH + 2)
-#define PT_GETFPREGS (PT_FIRSTMACH + 3)
-#define PT_SETFPREGS (PT_FIRSTMACH + 4)
-#define PT_GETDBREGS (PT_FIRSTMACH + 5)
-#define PT_SETDBREGS (PT_FIRSTMACH + 6)
-
#endif
diff --git a/sys/i386/include/ptrace.h b/sys/i386/include/ptrace.h
index ea3477e..7f4e7db 100644
--- a/sys/i386/include/ptrace.h
+++ b/sys/i386/include/ptrace.h
@@ -37,14 +37,4 @@
#ifndef _MACHINE_PTRACE_H_
#define _MACHINE_PTRACE_H_
-/*
- * Machine dependent trace commands.
- */
-#define PT_GETREGS (PT_FIRSTMACH + 1)
-#define PT_SETREGS (PT_FIRSTMACH + 2)
-#define PT_GETFPREGS (PT_FIRSTMACH + 3)
-#define PT_SETFPREGS (PT_FIRSTMACH + 4)
-#define PT_GETDBREGS (PT_FIRSTMACH + 5)
-#define PT_SETDBREGS (PT_FIRSTMACH + 6)
-
#endif
diff --git a/sys/ia64/include/ptrace.h b/sys/ia64/include/ptrace.h
index 2cf8f26..7f4e7db 100644
--- a/sys/ia64/include/ptrace.h
+++ b/sys/ia64/include/ptrace.h
@@ -37,12 +37,4 @@
#ifndef _MACHINE_PTRACE_H_
#define _MACHINE_PTRACE_H_
-/*
- * Machine dependent trace commands.
- */
-#define PT_GETREGS (PT_FIRSTMACH + 1)
-#define PT_SETREGS (PT_FIRSTMACH + 2)
-#define PT_GETFPREGS (PT_FIRSTMACH + 3)
-#define PT_SETFPREGS (PT_FIRSTMACH + 4)
-
#endif
diff --git a/sys/powerpc/include/ptrace.h b/sys/powerpc/include/ptrace.h
index ea3477e..7f4e7db 100644
--- a/sys/powerpc/include/ptrace.h
+++ b/sys/powerpc/include/ptrace.h
@@ -37,14 +37,4 @@
#ifndef _MACHINE_PTRACE_H_
#define _MACHINE_PTRACE_H_
-/*
- * Machine dependent trace commands.
- */
-#define PT_GETREGS (PT_FIRSTMACH + 1)
-#define PT_SETREGS (PT_FIRSTMACH + 2)
-#define PT_GETFPREGS (PT_FIRSTMACH + 3)
-#define PT_SETFPREGS (PT_FIRSTMACH + 4)
-#define PT_GETDBREGS (PT_FIRSTMACH + 5)
-#define PT_SETDBREGS (PT_FIRSTMACH + 6)
-
#endif
diff --git a/sys/sparc64/include/ptrace.h b/sys/sparc64/include/ptrace.h
index eb78807..607d602 100644
--- a/sys/sparc64/include/ptrace.h
+++ b/sys/sparc64/include/ptrace.h
@@ -37,12 +37,4 @@
#ifndef _MACHINE_PTRACE_H_
#define _MACHINE_PTRACE_H_
-/*
- * Machine dependent trace commands.
- */
-#define PT_GETREGS (PT_FIRSTMACH + 1)
-#define PT_SETREGS (PT_FIRSTMACH + 2)
-#define PT_GETFPREGS (PT_FIRSTMACH + 3)
-#define PT_SETFPREGS (PT_FIRSTMACH + 4)
-
-#endif /* !_MACHINE_PTRACE_H_ */
+#endif
diff --git a/sys/sys/ptrace.h b/sys/sys/ptrace.h
index 5c95ec1..250f2e2 100644
--- a/sys/sys/ptrace.h
+++ b/sys/sys/ptrace.h
@@ -51,7 +51,14 @@
#define PT_ATTACH 10 /* trace some running process */
#define PT_DETACH 11 /* stop tracing a process */
-#define PT_FIRSTMACH 32 /* for machine-specific requests */
+#define PT_GETREGS 33 /* get general-purpose registers */
+#define PT_SETREGS 34 /* set general-purpose registers */
+#define PT_GETFPREGS 35 /* get floating-point registers */
+#define PT_SETFPREGS 36 /* set floating-point registers */
+#define PT_GETDBREGS 37 /* get debugging registers */
+#define PT_SETDBREGS 38 /* set debugging registers */
+
+#define PT_FIRSTMACH 64 /* for machine-specific requests */
#include <machine/ptrace.h> /* machine-specific requests, if any */
#ifdef _KERNEL
OpenPOWER on IntegriCloud