1GCORE(1)                     GNU Development Tools                    GCORE(1)
2
3
4

NAME

6       gcore - Generate a core file of a running program
7

SYNOPSIS

9       gcore [-a] [-o prefix] pid1 [pid2...pidN]
10

DESCRIPTION

12       Generate core dumps of one or more running programs with process IDs
13       pid1, pid2, etc.  A core file produced by gcore is equivalent to one
14       produced by the kernel when the process crashes (and when "ulimit -c"
15       was used to set up an appropriate core dump limit).  However, unlike
16       after a crash, after gcore finishes its job the program remains running
17       without any change.
18

OPTIONS

20       -a  Dump all memory mappings.  The actual effect of this option depends
21           on the Operating System.  On GNU/Linux, it will disable
22           "use-coredump-filter" and enable "dump-excluded-mappings".
23
24       -o prefix
25           The optional argument prefix specifies the prefix to be used when
26           composing the file names of the core dumps.  The file name is
27           composed as prefix.pid, where pid is the process ID of the running
28           program being analyzed by gcore.  If not specified, prefix defaults
29           to gcore.
30

SEE ALSO

32       The full documentation for GDB is maintained as a Texinfo manual.  If
33       the "info" and "gdb" programs and GDB's Texinfo documentation are
34       properly installed at your site, the command
35
36               info gdb
37
38       should give you access to the complete manual.
39
40       Using GDB: A Guide to the GNU Source-Level Debugger, Richard M.
41       Stallman and Roland H. Pesch, July 1991.
42
44       Copyright (c) 1988-2021 Free Software Foundation, Inc.
45
46       Permission is granted to copy, distribute and/or modify this document
47       under the terms of the GNU Free Documentation License, Version 1.3 or
48       any later version published by the Free Software Foundation; with the
49       Invariant Sections being "Free Software" and "Free Software Needs Free
50       Documentation", with the Front-Cover Texts being "A GNU Manual," and
51       with the Back-Cover Texts as in (a) below.
52
53       (a) The FSF's Back-Cover Text is: "You are free to copy and modify this
54       GNU Manual.  Buying copies from GNU Press supports the FSF in
55       developing GNU and promoting software freedom."
56
57
58
59gdb-Fedora 10.2-1.fc34            2021-05-25                          GCORE(1)
Impressum