Debian Codegraph @

upstream/mageia-cauldron/man1/gcore.1

raw
1 .\" -*- mode: troff; coding: utf-8 -*-
2 .\" Automatically generated by Pod::Man v6.0.2 (Pod::Simple 3.45)
3 .\"
4 .\" Standard preamble:
5 .\" ========================================================================
6 .de Sp \" Vertical space (when we can't use .PP)
7 .if t .sp .5v
8 .if n .sp
9 ..
10 .de Vb \" Begin verbatim text
11 .ft CW
12 .nf
13 .ne \\$1
14 ..
15 .de Ve \" End verbatim text
16 .ft R
17 .fi
18 ..
19 .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.
20 .ie n \{\
21 . ds C` ""
22 . ds C' ""
23 'br\}
24 .el\{\
25 . ds C`
26 . ds C'
27 'br\}
28 .\"
29 .\" Escape single quotes in literal strings from groff's Unicode transform.
30 .ie \n(.g .ds Aq \(aq
31 .el .ds Aq '
32 .\"
33 .\" If the F register is >0, we'll generate index entries on stderr for
34 .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
35 .\" entries marked with X<> in POD. Of course, you'll have to process the
36 .\" output yourself in some meaningful fashion.
37 .\"
38 .\" Avoid warning from groff about undefined register 'F'.
39 .de IX
40 ..
41 .nr rF 0
42 .if \n(.g .if rF .nr rF 1
43 .if (\n(rF:(\n(.g==0)) \{\
44 . if \nF \{\
45 . de IX
46 . tm Index:\\$1\t\\n%\t"\\$2"
47 ..
48 . if !\nF==2 \{\
49 . nr % 0
50 . nr F 2
51 . \}
52 . \}
53 .\}
54 .rr rF
55 .\"
56 .\" Required to disable full justification in groff 1.23.0.
57 .if n .ds AD l
58 .\" ========================================================================
59 .\"
60 .IX Title "GCORE 1"
61 .TH GCORE 1 2025-08-15 gdb-16.3-2.mga10 "GNU Development Tools"
62 .\" For nroff, turn off justification. Always turn off hyphenation; it makes
63 .\" way too many mistakes in technical documents.
64 .if n .ad l
65 .nh
66 .SH NAME
67 gcore \- Generate a core file of a running program
68 .SH SYNOPSIS
69 .IX Header "SYNOPSIS"
70 gcore [\-a] [\-o \fIprefix\fR] [\-d \fIdirectory\fR] \fIpid1\fR [\fIpid2\fR...\fIpidN\fR]
71 .SH DESCRIPTION
72 .IX Header "DESCRIPTION"
73 Generate core dumps of one or more running programs with process IDs
74 \&\fIpid1\fR, \fIpid2\fR, etc. A core file produced by \fBgcore\fR
75 is equivalent to one produced by the kernel when the process crashes
76 (and when \f(CW\*(C`ulimit \-c\*(C'\fR was used to set up an appropriate core dump
77 limit). However, unlike after a crash, after \fBgcore\fR finishes
78 its job the program remains running without any change.
79 .SH OPTIONS
80 .IX Header "OPTIONS"
81 .IP \fB\-a\fR 4
82 .IX Item "-a"
83 Dump all memory mappings. The actual effect of this option depends on
84 the Operating System. On GNU/Linux, it will disable
85 \&\f(CW\*(C`use\-coredump\-filter\*(C'\fR and
86 enable \f(CW\*(C`dump\-excluded\-mappings\*(C'\fR.
87 .IP "\fB\-o\fR \fIprefix\fR" 4
88 .IX Item "-o prefix"
89 The optional argument \fIprefix\fR specifies the prefix to be used
90 when composing the file names of the core dumps. The file name is
91 composed as \fIprefix.pid\fR, where \fIpid\fR is the
92 process ID of the running program being analyzed by \fBgcore\fR.
93 If not specified, \fIprefix\fR defaults to \fIgcore\fR.
94 .IP "\fB\-d\fR \fIdirectory\fR" 4
95 .IX Item "-d directory"
96 Use \fIdirectory\fR as the data directory when invoking GDB for running
97 the gcore command. This argument is optional.
98 .SH ENVIRONMENT
99 .IX Header "ENVIRONMENT"
100 .SH "SEE ALSO"
101 .IX Header "SEE ALSO"
102 The full documentation for GDB is maintained as a Texinfo manual.
103 If the \f(CW\*(C`info\*(C'\fR and \f(CW\*(C`gdb\*(C'\fR programs and GDB\*(Aqs Texinfo
104 documentation are properly installed at your site, the command
105 .PP
106 .Vb 1
107 \& info gdb
108 .Ve
109 .PP
110 should give you access to the complete manual.
111 .PP
112 \&\fIUsing GDB: A Guide to the GNU Source\-Level Debugger\fR,
113 Richard M. Stallman and Roland H. Pesch, July 1991.
114 .SH COPYRIGHT
115 .IX Header "COPYRIGHT"
116 Copyright (c) 1988\-2024 Free Software Foundation, Inc.
117 .PP
118 Permission is granted to copy, distribute and/or modify this document
119 under the terms of the GNU Free Documentation License, Version 1.3 or
120 any later version published by the Free Software Foundation; with the
121 Invariant Sections being "Free Software" and "Free Software Needs
122 Free Documentation", with the Front\-Cover Texts being "A GNU Manual,"
123 and with the Back\-Cover Texts as in (a) below.
124 .PP
125 (a) The FSF\*(Aqs Back\-Cover Text is: "You are free to copy and modify
126 this GNU Manual. Buying copies from GNU Press supports the FSF in
127 developing GNU and promoting software freedom."