1GCORE(1)                    General Commands Manual                   GCORE(1)
2
3
4

NAME

6       gcore - get core image of running process
7

SYNOPSIS

9       gcore [-s][-c core] pid
10

DESCRIPTION

12       gcore  creates a core image of each specified process, suitable for use
13       with adb(1).  By  default  the  core  image  is  written  to  the  file
14       <pid>.core.
15
16       The options are:
17
18       -c     Write the core file to the specified file instead of <pid>.core.
19
20       -s     Stop  the  process  while  creating the core image and resume it
21              when done.  This makes sure that the core dump will be in a con‐
22              sistent  state.   The  process is resumed even if it was already
23              stopped.  Of course, you can obtain the same result by  manually
24              stopping the process with kill(1).
25
26       The  core  image name was changed from core.<pid> to <pid>.core to pre‐
27       vent matching names like core.h and core.c when using programs such  as
28       find(1).
29

FILES

31       <process-id>.core   The core image.
32

BUGS

34       If  gcore  encounters an error while creating the core image and the -s
35       option was used the process will remain stopped.
36
37       Swapped out processes and system processes (the  swapper)  may  not  be
38       gcore'd.
39
40
41
424.2 Berkeley Distribution       April 15, 1994                        GCORE(1)
Impressum