diff options
| author | christos <christos@NetBSD.org> | 2005-01-09 17:41:19 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2005-01-09 17:41:19 +0000 |
| commit | 8ef68a6575bec67b08eae4aaa8655c4eafbdd583 (patch) | |
| tree | 67ad9292c4f9006643eb2f778d254bc022993bcd /lib/libc/sys/ptrace.2 | |
| parent | a9b3f31984c72a93c913c4b964b320ab37bb1fba (diff) | |
document PT_DUMPCORE.
Diffstat (limited to 'lib/libc/sys/ptrace.2')
| -rw-r--r-- | lib/libc/sys/ptrace.2 | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/lib/libc/sys/ptrace.2 b/lib/libc/sys/ptrace.2 index a243c3c73c8..2d5869ef8fc 100644 --- a/lib/libc/sys/ptrace.2 +++ b/lib/libc/sys/ptrace.2 @@ -1,7 +1,7 @@ -.\" $NetBSD: ptrace.2,v 1.25 2004/05/13 10:20:58 wiz Exp $ +.\" $NetBSD: ptrace.2,v 1.26 2005/01/09 17:41:19 christos Exp $ .\" .\" This file is in the public domain. -.Dd November 7, 1994 +.Dd January 9, 2005 .Dt PTRACE 2 .Os .Sh NAME @@ -385,6 +385,24 @@ pointed to by .\" can usefully be changed; they are set to the values returned by the .\" syscall and will be passed back to the traced process by the normal .\" syscall return mechanism. +.It Dv PT_DUMPCORE +Cause the traced process to dump core. +If the +.Fa addr +argument is not +.Dv NULL +it is taken to be the pathname of the core file to be generated and the +.Fa data +argument should contain the length of the pathname. +The pathname may contain +.Dv % +patterns that are expanded as described in +.Xr sysctl 8 . +If the +.Fa data +argument is +.Dv NULL , +the default core file path generation rules are followed. .El .Sh ERRORS Some requests can cause |
