diff options
author | des <des@FreeBSD.org> | 1998-09-14 10:09:30 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 1998-09-14 10:09:30 +0000 |
commit | efe6cafb5de5d87d7ed69ddd998cbc6d33de913b (patch) | |
tree | 682f176c63a8721af6a67452f90c3cf8f81c2db4 /usr.bin/gcore/gcore.1 | |
parent | 3e5a3a2a28e4c102e4f8b124073a84c3f1bac8ce (diff) | |
download | FreeBSD-src-efe6cafb5de5d87d7ed69ddd998cbc6d33de913b.zip FreeBSD-src-efe6cafb5de5d87d7ed69ddd998cbc6d33de913b.tar.gz |
Don't require an executable file name. If no executable image is
specified, use /proc/<pid>/file. Document it.
PR: bin/7915
Suggested-By: Wolfram Schneider <wosch@panke.de.freebsd.org>
Diffstat (limited to 'usr.bin/gcore/gcore.1')
-rw-r--r-- | usr.bin/gcore/gcore.1 | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/usr.bin/gcore/gcore.1 b/usr.bin/gcore/gcore.1 index 2e1d5f6..8a66e88 100644 --- a/usr.bin/gcore/gcore.1 +++ b/usr.bin/gcore/gcore.1 @@ -41,7 +41,8 @@ .Nm .Op Fl s .Op Fl c Ar core -.Ar exec pid +.Op Ar exec +.Ar pid .Sh DESCRIPTION .Nm Gcore creates a core image of the specified process, @@ -49,11 +50,13 @@ suitable for use with .Xr gdb 1 . By default, the core is written to the file .Dq Pa core.<pid> . -Both the executable image, -.Ar exec , -and the process identifier, +The process identifier, .Ar pid , -must be given on the command line. +must be given on the command line. If no executable image is +specified, +.Nm +will use +.Dq Pa /proc/<pid>/file . .Pp The options are: .Bl -tag -width indent @@ -72,6 +75,8 @@ The same effect can be achieved manually with .Bl -tag -width /var/log/messages -compact .It Pa core.<pid> The core image. +.It Pa /proc/<pid>/file +The executable image. .EL .Dp .Sh HISTORY @@ -90,8 +95,3 @@ to temporarily stop the target process. is not compatible with the original .Bx 4.2 version. -In particular, -.Bx 4.4 -requires the -.Ar exec -argument. |