macOS
brew install gdblocal Homebrew formula metadata
sudo port install gdbMacPorts ports tree · devel/gdb/Portfile · source: api.github.com
brew
GNU debugger. Version 17.2 via Homebrew; verified 2026-05-10.
install
brew install gdblocal Homebrew formula metadata
sudo port install gdbMacPorts ports tree · devel/gdb/Portfile · source: api.github.com
sudo apk add gdbAlpine Linux edge package indexes · gdb · source: dl-cdn.alpinelinux.org
sudo apt install gdbDebian stable package indexes · gdb · source: deb.debian.org
sudo dnf install gdbFedora Rawhide package metadata · gdb · source: dl.fedoraproject.org
nix profile install nixpkgs#gdbnixpkgs package indexes · pkgs/by-name/gd/gdb/package.nix · source: api.github.com
sudo pacman -S gdbArch Linux sync databases · gdb · source: geo.mirror.pkgbuild.com
sudo zypper install gdbopenSUSE Tumbleweed package metadata · gdb · source: download.opensuse.org
scoop install main/gdbScoop official bucket manifest trees · bucket/gdb.json · source: api.github.com
overview
GNU debugger
history
GDB is the GNU Project's source-level debugger, used from the command line to run programs under observation, stop them at controlled points, inspect state, and experiment with program execution.
The current GDB manual credits Richard Stallman as the original author and describes many later contributors. Its copyright history begins in 1988, placing GDB among the early core GNU development tools.
The manual's contributor history records early releases through 2.8 under Richard Stallman and assistants, later 3.x and 4.x release stewards, and major commercial and community contributions for CPU targets, object formats, remote debugging, gdbserver, the machine interface, and language support.
GDB is maintained in Sourceware's binutils-gdb repository, reflecting its close development relationship with GNU Binutils and the broader GNU toolchain.
GDB became the default debugger in many Unix-like development environments because it paired a scriptable CLI with broad compiler, architecture, object-file, and language support.
The manual records Cygnus Solutions sponsoring GDB maintenance and much development since 1991, an important phase in professionalizing GNU toolchain support for commercial cross-development and embedded targets.
The manual describes GDB as useful for starting a program, stopping it on specified conditions, examining what happened after it stopped, and changing program state to continue debugging.
GDB supports many languages, including C, C++, D, Go, Objective-C, Fortran, OpenCL C, Pascal, Rust, assembly, Modula-2, and Ada. It also includes remote debugging, gdbserver, TUI, GDB/MI, Python and Guile extension APIs, and Debugger Adapter Protocol support.
GDB is a canonical package-manager debugging tool: small at the command line, but deeply tied to compiler output, debug symbols, libc behavior, architecture support, Python scripting, and remote target workflows.
Its initialization-file search path is platform-sensitive, with XDG-style paths on non-macOS Unix systems and Library/Preferences paths on macOS, which makes packaging and documentation details visible to users.
security posture
doc example: debugger and process inspection tool.
red risk · high confidence · escape-surveillance-offensive
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
~/Library/Preferences/gdb/gdbearlyinit~/.gdbearlyinit~/Library/Preferences/gdb/gdbinit~/.gdbinit./.gdbinit$XDG_CONFIG_HOME/gdb/gdbearlyinit~/.config/gdb/gdbearlyinit~/.gdbearlyinit$XDG_CONFIG_HOME/gdb/gdbinit~/.config/gdb/gdbinit~/.gdbinit./.gdbinitexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
gcore | cli | global executable | |
gdb | cli | global executable | |
gdb-add-index | cli | global executable | |
gdbserver | cli | global executable | |
gstack | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://www.gnu.org/software/gdb/
install metadata
| Package key | brew:gdb |
|---|---|
| Version | 17.2 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/gdb |
| Homepage | https://www.gnu.org/software/gdb/ |
| Repository | https://sourceware.org/git?p=binutils-gdb.git |
| Upstream docs | https://sourceware.org/gdb/current/onlinedocs/gdb |
| License | GPL-3.0-or-later |
| Source archive | https://ftpmirror.gnu.org/gnu/gdb/gdb-17.2.tar.xz |
| Last updated | 2026-05-10T20:39:26Z |
| Pulse | updated |
| Dependencies | gmp, mpfr, ncurses, python@3.14, readline, xz, zstd |
| Build dependencies | pkgconf, texinfo |
| Uses from macOS | expat |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
| Caveats | gdb requires special privileges to access Mach ports. You will need to codesign the binary. For instructions, see: https://sourceware.org/gdb/wiki/PermissionsDarwin |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | gdb |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
gdb 16.3-1
GNU Debugger
sudo apt install gdbgdb-minimal 16.3-1
GNU Debugger (minimal version - dummy transitional package)
sudo apt install gdb-minimalgdb-multiarch 16.3-1
GNU Debugger (with support for multiple architectures)
sudo apt install gdb-multiarchgdb-source 16.3-1
GNU Debugger (source)
sudo apt install gdb-sourcegdbserver 16.3-1
GNU Debugger (remote server)
sudo apt install gdbservergdb
nix profile install nixpkgs#gdbgdb 15.0.50.20240403-0ubuntu1
GNU Debugger
sudo apt install gdbgdb-doc 15.0.50.20240403-0ubuntu1
The GNU Debugger Documentation
sudo apt install gdb-docgdb-multiarch 15.0.50.20240403-0ubuntu1
GNU Debugger (with support for multiple architectures)
sudo apt install gdb-multiarchgdb-source 15.0.50.20240403-0ubuntu1
GNU Debugger (source)
sudo apt install gdb-sourcegdbserver 15.0.50.20240403-0ubuntu1
GNU Debugger (remote server)
sudo apt install gdbservergdb 16.3-r4
The GNU Debugger
https://www.gnu.org/software/gdb/
sudo apk add gdbgdb-dbg 16.3-r4
The GNU Debugger (debug symbols)
https://www.gnu.org/software/gdb/
sudo apk add gdb-dbggdb-doc 16.3-r4
The GNU Debugger (documentation)
https://www.gnu.org/software/gdb/
sudo apk add gdb-docgdb-multiarch 16.3-r4
The GNU Debugger for all supported architectures
https://www.gnu.org/software/gdb/
sudo apk add gdb-multiarchgdb 17.1-10.fc45
A GNU source-level debugger for C, C++, Fortran, Go and other languages
sudo dnf install gdbsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.