macOS
brew install gdblocal Homebrew formula metadata
sudo port install gdbMacPorts ports tree · devel/gdb/Portfile · Quelle: api.github.com
brew
Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für gdb in AI-Agent-Workflows.
Installation
brew install gdblocal Homebrew formula metadata
sudo port install gdbMacPorts ports tree · devel/gdb/Portfile · Quelle: api.github.com
sudo apk add gdbAlpine Linux edge package indexes · gdb · Quelle: dl-cdn.alpinelinux.org
sudo apt install gdbDebian stable package indexes · gdb · Quelle: deb.debian.org
sudo dnf install gdbFedora Rawhide package metadata · gdb · Quelle: dl.fedoraproject.org
nix profile install nixpkgs#gdbnixpkgs package indexes · pkgs/by-name/gd/gdb/package.nix · Quelle: api.github.com
sudo pacman -S gdbArch Linux sync databases · gdb · Quelle: geo.mirror.pkgbuild.com
sudo zypper install gdbopenSUSE Tumbleweed package metadata · gdb · Quelle: download.opensuse.org
scoop install main/gdbScoop official bucket manifest trees · bucket/gdb.json · Quelle: api.github.com
Überblick
GNU debugger
Verlauf
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.
Sicherheitslage
doc example: debugger and process inspection tool.
red Risiko · hoch Konfidenz · escape-surveillance-offensive
Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.
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
| Befehl | Art | Sichtbarkeit | Hinweis |
|---|---|---|---|
gcore | cli | globales Executable | |
gdb | cli | globales Executable | |
gdb-add-index | cli | globales Executable | |
gdbserver | cli | globales Executable | |
gstack | cli | globales Executable |
Aktualität
Diese Signale trennen das Alter der Seitengenerierung, Aktivität des Paketmanagers und Upstream-Release-Vergleich. Versionsrückstand wird nur gemeldet, wenn eine Evidenz-URL und vergleichbare Versionen vorhanden sind.
https://www.gnu.org/software/gdb/
Installationsmetadaten
| Paketschlüssel | brew:gdb |
|---|---|
| Version | 17.2 |
| Paketmanager | Homebrew |
| Paketmanager-Seite | https://formulae.brew.sh/formula/gdb |
| Homepage | https://www.gnu.org/software/gdb/ |
| Repository | https://sourceware.org/git?p=binutils-gdb.git |
| Upstream-Dokumentation | https://sourceware.org/gdb/current/onlinedocs/gdb |
| Lizenz | GPL-3.0-or-later |
| Quellarchiv | https://ftpmirror.gnu.org/gnu/gdb/gdb-17.2.tar.xz |
| Zuletzt aktualisiert | 2026-05-10T20:39:26Z |
| Pulse | updated |
| Abhängigkeiten | gmp, mpfr, ncurses, python@3.14, readline, xz, zstd |
| Build-Abhängigkeiten | pkgconf, texinfo |
| Von macOS bereitgestellte Bibliotheken | expat |
| Bottle | verfügbar (auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | nicht definiert |
| Dienst | keiner deklariert |
| Einschränkungen | 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-Fakten
| 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-Datenbank-Treffer
Treffer stammen aus externen Paketmanager-Indizes und bleiben von lokalen Automic-Vault-Paketlinks getrennt.
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 gdbQuellspur
Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.
View the package source record on GitHub.