summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2009-03-05 19:52:25 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2009-03-05 19:52:25 +0000
commit94b35ac8ba6c670755f5c398f89709d960544622 (patch)
tree0c62a6bd55e1b1b55e3b7f5f166d8d94a0c07777 /sys/arch
parent4939771421161444c79853f0ec2588d8aac2627e (diff)
Make ELF platforms generate ELF core dumps. Somewhat based on code from
NetBSD. ok kurt@, drahn@, miod@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sparc/sparc/process_machdep.c6
-rw-r--r--sys/arch/sparc64/sparc64/process_machdep.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/sparc/sparc/process_machdep.c b/sys/arch/sparc/sparc/process_machdep.c
index 6a42d97e2a4..93a5ff26dd5 100644
--- a/sys/arch/sparc/sparc/process_machdep.c
+++ b/sys/arch/sparc/sparc/process_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: process_machdep.c,v 1.12 2005/12/30 00:18:30 kettenis Exp $ */
+/* $OpenBSD: process_machdep.c,v 1.13 2009/03/05 19:52:23 kettenis Exp $ */
/* $NetBSD: process_machdep.c,v 1.6 1996/03/14 21:09:26 christos Exp $ */
/*
@@ -162,11 +162,11 @@ process_write_fpregs(p, regs)
return 0;
}
+#endif /* PTRACE */
+
register_t
process_get_wcookie(p)
struct proc *p;
{
return p->p_addr->u_pcb.pcb_wcookie;
}
-
-#endif /* PTRACE */
diff --git a/sys/arch/sparc64/sparc64/process_machdep.c b/sys/arch/sparc64/sparc64/process_machdep.c
index d57c0887ebd..fb403b4513c 100644
--- a/sys/arch/sparc64/sparc64/process_machdep.c
+++ b/sys/arch/sparc64/sparc64/process_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: process_machdep.c,v 1.11 2007/10/31 22:46:52 kettenis Exp $ */
+/* $OpenBSD: process_machdep.c,v 1.12 2009/03/05 19:52:23 kettenis Exp $ */
/* $NetBSD: process_machdep.c,v 1.10 2000/09/26 22:05:50 eeh Exp $ */
/*
@@ -231,10 +231,10 @@ process_write_fpregs(p, regs)
return 0;
}
+#endif /* PTRACE */
+
register_t
process_get_wcookie(struct proc *p)
{
return p->p_addr->u_pcb.pcb_wcookie;
}
-
-#endif /* PTRACE */