GCORE(1) BSD Reference Manual GCORE(1)NAMEgcore - get core images of running process
SYNOPSISgcore [-c core] pid
DESCRIPTION
Gcore creates a core image of the specified process, suitable for use
with gdb(1). By default, the core is written to the file ``core.<pid>''.
The sole option is:
-c Write the core file to the specified file instead of
``core.<pid>''.
Unless you are the superuser, gcore cannot be used to obtain core files
from setuid or setgid processes.
FILES
core.<pid> The core image.
SEE ALSOfcore(2), core(5)HISTORY
Gcore appeared in 4.2BSD.
BUGS
Gcore cannot obtain core files from processes that are being traced by
gdb(1) or other debuggers.
Gcore cannot obtain core files from /sbin/init (process 1) except in sin-
gle-user mode.
4.2 Berkeley Distribution December 8, 1997 1