.\" Copyright (c) 1983, 1990, 1992, 1993
.\" The Regents of the University of California. All rights reserved.
.\" %sccs.include.redist.man%
.\" @(#)gcore.1 8.1 (Berkeley) %G%
.Nd get core images of running process
creates a core image of the specified process,
By default, the core is written to the file
Both the executable image,
and the process identifier,
must be given on the command line.
Write the core file to the specified file instead of
Stop the process while gathering the core image, and resume it
when done. This guarantees that the resulting core dump will
be in a consistent state. The process is resumed even if it was
The same effect can be achieved manually with
.Bl -tag -width /var/log/messages -compact
Context switches or paging activity that occur while
is running may cause the program to become confused.
For best results, use -s to temporarily stop the target process.
is not compatible with the original 4.2BSD version.
In particular, 4.4BSD requires the