gcore man page on 4.4BSD

Printed from http://www.polarhome.com/service/man/?qf=gcore&af=0&tf=2&of=4.4BSD

GCORE(1)		  BSD General Commands Manual		      GCORE(1)

NAME
     gcore — get core images of running process

SYNOPSIS
     gcore [-s] [-c core] exec 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>”.
     Both the executable image, exec, and the process identifier, pid, must be
     given on the command line.

     The options are:

     -c	     Write the core file to the specified file instead of
	     “core.<pid>”.

     -s	     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
	     already stopped.  The same effect can be achieved manually with
	     kill(1).

FILES
     core.<pid>		The core image.

HISTORY
     Gcore appeared in 4.2BSD.

BUGS
     Context switches or paging activity that occur while gcore is running may
     cause the program to become confused.  For best results, use -s to tempo‐
     rarily stop the target process.

     Gcore is not compatible with the original 4.2BSD version.	In particular,
     4.4BSD requires the exec argument.

4.2 Berkeley Distribution	March 29, 2024	     4.2 Berkeley Distribution
[top]

List of man pages available for 4.4BSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net