summaryrefslogtreecommitdiff
path: root/sys/kern/sys_process.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-03-11 15:39:28 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-03-11 15:39:28 +0000
commit34490d94cf1e342f5a799e46ad912f407f4d1528 (patch)
treec778cf32f4cccb79a17effdc1bdad346acc3d4b5 /sys/kern/sys_process.c
parentcb83b016c34d31cf2a017c57b3bdeaa0198f25cf (diff)
Since all archs implement PT_GETREGS and PT_SETREGS, make then unoptional.
They still stay in MD code for backwards compatibility, but a check in ptrace.h checks if they are defined. Note - the same thing will be done with PT_{GET,SET}FPREGS once vax implements them and with PT_STEP when it's implemented by sparc, sparc64 and alpha.
Diffstat (limited to 'sys/kern/sys_process.c')
-rw-r--r--sys/kern/sys_process.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c
index ef529d30f07..55d3f6e7077 100644
--- a/sys/kern/sys_process.c
+++ b/sys/kern/sys_process.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sys_process.c,v 1.18 2002/03/11 14:20:35 art Exp $ */
+/* $OpenBSD: sys_process.c,v 1.19 2002/03/11 15:39:27 art Exp $ */
/* $NetBSD: sys_process.c,v 1.55 1996/05/15 06:17:47 tls Exp $ */
/*-
@@ -163,12 +163,8 @@ sys_ptrace(p, v, retval)
#ifdef PT_STEP
case PT_STEP:
#endif
-#ifdef PT_GETREGS
case PT_GETREGS:
-#endif
-#ifdef PT_SETREGS
case PT_SETREGS:
-#endif
#ifdef PT_GETFPREGS
case PT_GETFPREGS:
#endif
@@ -380,15 +376,10 @@ sys_ptrace(p, v, retval)
SCARG(uap, data) = SIGSTOP;
goto sendsig;
-#ifdef PT_SETREGS
case PT_SETREGS:
write = 1;
-#endif
-#ifdef PT_GETREGS
case PT_GETREGS:
/* write = 0 done above. */
-#endif
-#if defined(PT_SETREGS) || defined(PT_GETREGS)
if (!procfs_validregs(t, NULL))
return (EINVAL);
else {
@@ -403,8 +394,6 @@ sys_ptrace(p, v, retval)
uio.uio_procp = p;
return (procfs_doregs(p, t, NULL, &uio));
}
-#endif
-
#ifdef PT_SETFPREGS
case PT_SETFPREGS:
write = 1;