macOS
brew install gdblocal Homebrew formula metadata
sudo port install gdbMacPorts ports tree · devel/gdb/Portfile · Source: api.github.com
brew
Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de gdb pour les workflows d'agents IA.
installation
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
aperçu
GNU debugger
historique
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.
posture de sécurité
doc example: debugger and process inspection tool.
risque red · confiance élevé · escape-surveillance-offensive
Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des 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./.gdbinitexécutables
| Commande | Type | Exposition | Note |
|---|---|---|---|
gcore | cli | exécutable global | |
gdb | cli | exécutable global | |
gdb-add-index | cli | exécutable global | |
gdbserver | cli | exécutable global | |
gstack | cli | exécutable global |
fraîcheur
Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.
https://www.gnu.org/software/gdb/
métadonnées d'installation
| Clé du paquet | brew:gdb |
|---|---|
| Version | 17.2 |
| Gestionnaire de paquets | Homebrew |
| Page du gestionnaire de paquets | https://formulae.brew.sh/formula/gdb |
| Page d'accueil | https://www.gnu.org/software/gdb/ |
| Dépôt | https://sourceware.org/git?p=binutils-gdb.git |
| Docs amont | https://sourceware.org/gdb/current/onlinedocs/gdb |
| Licence | GPL-3.0-or-later |
| Archive source | https://ftpmirror.gnu.org/gnu/gdb/gdb-17.2.tar.xz |
| Dernière mise à jour | 2026-05-10T20:39:26Z |
| Pulse | updated |
| Dépendances | gmp, mpfr, ncurses, python@3.14, readline, xz, zstd |
| Dépendances de compilation | pkgconf, texinfo |
| Bibliothèques fournies par macOS | expat |
| Bouteille | disponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| post-install Homebrew | non défini |
| Service | aucun déclaré |
| Précautions | gdb requires special privileges to access Mach ports. You will need to codesign the binary. For instructions, see: https://sourceware.org/gdb/wiki/PermissionsDarwin |
faits du registre
| 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 |
|
correspondances dans les bases sources
Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.
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 gdbpiste source
Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.