summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-02-01 15:00:43 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-02-01 15:00:43 +0000
commit96ede7ee2db21fd70bcd99ea91a1b58dc3fcc1bf (patch)
treea8dab01761e6a09298cb6d09250e183968656953 /sys/arch/amd64
parent954d37097e3a672e557d32d929b320965d538dfa (diff)
Do not compile ptrace-related functions unless option PTRACE.
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/amd64/process_machdep.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/amd64/amd64/process_machdep.c b/sys/arch/amd64/amd64/process_machdep.c
index b7c607cd1f0..558a873d824 100644
--- a/sys/arch/amd64/amd64/process_machdep.c
+++ b/sys/arch/amd64/amd64/process_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: process_machdep.c,v 1.3 2004/01/29 13:21:10 mickey Exp $ */
+/* $OpenBSD: process_machdep.c,v 1.4 2004/02/01 15:00:42 miod Exp $ */
/* $NetBSD: process_machdep.c,v 1.1 2003/04/26 18:39:31 fvdl Exp $ */
/*-
@@ -157,6 +157,8 @@ process_read_fpregs(struct proc *p, struct fpreg *regs)
return (0);
}
+#ifdef PTRACE
+
int
process_write_regs(struct proc *p, struct reg *regs)
{
@@ -235,3 +237,5 @@ process_set_pc(struct proc *p, caddr_t addr)
return (0);
}
+
+#endif /* PTRACE */