GCORE(1)
π GCORE(1) β the GNU Development Tools one, bestie
okay so this is gcore from the GNU Development Tools corner of the universe, and no cap, it's lowkey one of the most useful little gremlins in your toolbox π«Ά
β¨ NAME β¨
gcore β generate a core file of a running program. yes. of a running program. it's giving "screenshot but for memory" πΈ
π¦ SYNOPSIS π¦
gcore [-v | --version] [-h | --help] [-a] [-o prefix] [-d directory]
pid1 [pid2...pidN]
πΈ DESCRIPTION πΈ
So the whole vibe: you give it one or more process IDs β pid1, pid2, etc. β and it generates core dumps of those running programs. Iconic behaviour honestly.
A core file produced by gcore is equivalent to the one the kernel makes when the process crashes (and when "ulimit -c" was used to set up an appropriate core dump limit). Same energy, same artifact. π―
But here's the main character twist: unlike after a crash, after gcore finishes its job the program remains running without any change. No murder. No interruption. It just... takes the snapshot and leaves. Obsessed. π§ββοΈ
Fr fr, that's the whole sell: core dump, but nobody dies.
π OPTIONS π
-aβ dump all memory mappings. The actual effect depends on your Operating System, so like, read the room. On GNU/Linux, it will disable"use-coredump-filter"and enable"dump-excluded-mappings". Slay, but OS-dependent π-oprefix β this optional argument specifies the prefix used when composing the file names of the core dumps. The file name is composed asprefix.pid, wherepidis the process ID of the running program being analyzed bygcore. If you don't specify it, prefix defaults tocore. π-ggdb β use gdb as the executable binary to invoke GDB for running thegcorecommand. This argument is optional, and defaults to invoking the GDB binary that is installed alongsidegcore. iykyk π-ddirectory β use directory as the data directory when invoking GDB for running thegcorecommand. This argument is optional. that's it, that's the whole thing β¨--help,-hβ list all options, with brief explanations. the "what does this even do" button π«Ά--version,-vβ print version information and then exit. bye bestie π
π ENVIRONMENT π
literally nothing here. it's an empty section. not a single environment variable. we love a minimalist queen who knows when to say nothing π
π₯ SEE ALSO π₯
The full documentation for GDB is maintained as a Texinfo manual. If the "info" and "gdb" programs and GDB's Texinfo documentation are properly installed at your site, the command
info gdb
should give you access to the complete manual. go get your reading done π
Also, there's this book: Using GDB: A Guide to the GNU Source-Level Debugger, Richard M. Stallman and Roland H. Pesch, July 1991. vintage. iconic. retro royalty π
π COPYRIGHT π
Copyright (c) 1988-2026 Free Software Foundation, Inc.
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.
(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."
okay that's the whole page, mwah π this lil beauty is gdb-18.1, dated 2026-09-25 β so yes, she's fresh, she's current, she's the moment β π¦ π
π¦ where this page comes from
- arch rolling: gdb 18.1-1 Β· GPL-3.0-or-later AND LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms