.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "GCORE 1" .TH GCORE 1 2024-04-24 gdb- "GNU Development Tools" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME gcore \- Generate a core file of a running program .SH SYNOPSIS .IX Header "SYNOPSIS" gcore [\-a] [\-o \fIprefix\fR] \fIpid1\fR [\fIpid2\fR...\fIpidN\fR] .SH DESCRIPTION .IX Header "DESCRIPTION" Generate core dumps of one or more running programs with process IDs \&\fIpid1\fR, \fIpid2\fR, etc. A core file produced by \fBgcore\fR is equivalent to one produced by the kernel when the process crashes (and when \f(CW\*(C`ulimit \-c\*(C'\fR was used to set up an appropriate core dump limit). However, unlike after a crash, after \fBgcore\fR finishes its job the program remains running without any change. .SH OPTIONS .IX Header "OPTIONS" .IP \fB\-a\fR 4 .IX Item "-a" Dump all memory mappings. The actual effect of this option depends on the Operating System. On GNU/Linux, it will disable \&\f(CW\*(C`use\-coredump\-filter\*(C'\fR and enable \f(CW\*(C`dump\-excluded\-mappings\*(C'\fR. .IP "\fB\-o\fR \fIprefix\fR" 4 .IX Item "-o prefix" The optional argument \fIprefix\fR specifies the prefix to be used when composing the file names of the core dumps. The file name is composed as \fIprefix.pid\fR, where \fIpid\fR is the process ID of the running program being analyzed by \fBgcore\fR. If not specified, \fIprefix\fR defaults to \fIgcore\fR. .SH "SEE ALSO" .IX Header "SEE ALSO" The full documentation for GDB is maintained as a Texinfo manual. If the \f(CW\*(C`info\*(C'\fR and \f(CW\*(C`gdb\*(C'\fR programs and GDB's Texinfo documentation are properly installed at your site, the command .PP .Vb 1 \& info gdb .Ve .PP should give you access to the complete manual. .PP \&\fIUsing GDB: A Guide to the GNU Source-Level Debugger\fR, Richard M. Stallman and Roland H. Pesch, July 1991. .SH COPYRIGHT .IX Header "COPYRIGHT" Copyright (c) 1988\-2023 Free Software Foundation, Inc. .PP Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with the Invariant Sections being "Free Software" and "Free Software Needs Free Documentation", with the Front-Cover Texts being "A GNU Manual," and with the Back-Cover Texts as in (a) below. .PP (a) The FSF's Back-Cover Text is: "You are free to copy and modify this GNU Manual. Buying copies from GNU Press supports the FSF in developing GNU and promoting software freedom."