summaryrefslogtreecommitdiff
path: root/sys/miscfs/procfs
diff options
context:
space:
mode:
authorMarc Aurele La France <tsi@cvs.openbsd.org>2006-08-28 20:53:19 +0000
committerMarc Aurele La France <tsi@cvs.openbsd.org>2006-08-28 20:53:19 +0000
commitf02d466a69e470d0ea81165273379bac72fce1cc (patch)
tree38882de59c7ab53fc8ee082aa937ebd4123ccdaf /sys/miscfs/procfs
parent9a9aaddcc3e2b451dcc8659beaa4ae40a8bf3e32 (diff)
Allow building procfs on systems that don't #define PT_STEP (such as sparc64).
ok pedro@, miod@
Diffstat (limited to 'sys/miscfs/procfs')
-rw-r--r--sys/miscfs/procfs/procfs_ctl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/miscfs/procfs/procfs_ctl.c b/sys/miscfs/procfs/procfs_ctl.c
index 7fac58d0d48..d5ba6e0df87 100644
--- a/sys/miscfs/procfs/procfs_ctl.c
+++ b/sys/miscfs/procfs/procfs_ctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: procfs_ctl.c,v 1.17 2005/12/11 21:30:31 miod Exp $ */
+/* $OpenBSD: procfs_ctl.c,v 1.18 2006/08/28 20:53:18 tsi Exp $ */
/* $NetBSD: procfs_ctl.c,v 1.14 1996/02/09 22:40:48 christos Exp $ */
/*
@@ -207,12 +207,16 @@ procfs_control(curp, p, op)
* Step. Let the target process execute a single instruction.
*/
case PROCFS_CTL_STEP:
+#ifdef PT_STEP
PHOLD(p);
error = process_sstep(p, 1);
PRELE(p);
if (error)
return (error);
break;
+#else
+ return (EOPNOTSUPP);
+#endif
/*
* Run. Let the target process continue running until a breakpoint