diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2004-02-01 15:00:43 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2004-02-01 15:00:43 +0000 |
commit | 96ede7ee2db21fd70bcd99ea91a1b58dc3fcc1bf (patch) | |
tree | a8dab01761e6a09298cb6d09250e183968656953 /sys/arch/amd64 | |
parent | 954d37097e3a672e557d32d929b320965d538dfa (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.c | 6 |
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 */ |