120 lines
3.5 KiB
HTML
120 lines
3.5 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of GCORE</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>GCORE</H1>
|
|
Section: GNU Development Tools (1)<BR>Updated: 2020-08-04<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
gcore - Generate a core file of a running program
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
|
|
|
|
gcore [-a] [-o <I>prefix</I>] <I>pid1</I> [<I>pid2</I>...<I>pidN</I>]
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
|
|
|
|
Generate core dumps of one or more running programs with process IDs
|
|
<I>pid1</I>, <I>pid2</I>, etc. A core file produced by <B>gcore</B>
|
|
is equivalent to one produced by the kernel when the process crashes
|
|
(and when <TT>"ulimit -c"</TT> was used to set up an appropriate core dump
|
|
limit). However, unlike after a crash, after <B>gcore</B> finishes
|
|
its job the program remains running without any change.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>-a</B><DD>
|
|
|
|
|
|
Dump all memory mappings. The actual effect of this option depends on
|
|
the Operating System. On GNU/Linux, it will disable
|
|
<TT>"use-coredump-filter"</TT> and
|
|
enable <TT>"dump-excluded-mappings"</TT>.
|
|
<DT id="2"><B>-o</B> <I>prefix</I><DD>
|
|
|
|
|
|
The optional argument <I>prefix</I> specifies the prefix to be used
|
|
when composing the file names of the core dumps. The file name is
|
|
composed as <I>prefix.pid</I>, where <I>pid</I> is the
|
|
process <FONT SIZE="-1">ID</FONT> of the running program being analyzed by <B>gcore</B>.
|
|
If not specified, <I>prefix</I> defaults to <I>gcore</I>.
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
|
|
|
|
The full documentation for <FONT SIZE="-1">GDB</FONT> is maintained as a Texinfo manual.
|
|
If the <TT>"info"</TT> and <TT>"gdb"</TT> programs and <FONT SIZE="-1">GDB</FONT>'s Texinfo
|
|
documentation are properly installed at your site, the command
|
|
<P>
|
|
|
|
|
|
|
|
<PRE>
|
|
info gdb
|
|
|
|
</PRE>
|
|
|
|
|
|
<P>
|
|
|
|
should give you access to the complete manual.
|
|
<P>
|
|
|
|
<I>Using </I><FONT SIZE="-1"><I>GDB: A</I></FONT><I> Guide to the </I><FONT SIZE="-1"><I>GNU</I></FONT><I> Source-Level Debugger</I>,
|
|
Richard M. Stallman and Roland H. Pesch, July 1991.
|
|
<A NAME="lbAG"> </A>
|
|
<H2>COPYRIGHT</H2>
|
|
|
|
|
|
|
|
Copyright (c) 1988-2020 Free Software Foundation, Inc.
|
|
<P>
|
|
|
|
Permission is granted to copy, distribute and/or modify this document
|
|
under the terms of the <FONT SIZE="-1">GNU</FONT> 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 <FONT SIZE="-1">GNU</FONT> Manual,''
|
|
and with the Back-Cover Texts as in (a) below.
|
|
<P>
|
|
|
|
(a) The <FONT SIZE="-1">FSF</FONT>'s Back-Cover Text is: ``You are free to copy and modify
|
|
this <FONT SIZE="-1">GNU</FONT> Manual. Buying copies from <FONT SIZE="-1">GNU</FONT> Press supports the <FONT SIZE="-1">FSF</FONT> in
|
|
developing <FONT SIZE="-1">GNU</FONT> and promoting software freedom.''
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="3"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="4"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="5"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="6"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="7"><A HREF="#lbAF">SEE ALSO</A><DD>
|
|
<DT id="8"><A HREF="#lbAG">COPYRIGHT</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:13 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|