macOS
brew install gdblocal Homebrew formula metadata
sudo port install gdbMacPorts ports tree · devel/gdb/Portfile · ソース: api.github.com
brew
gdb のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install gdblocal Homebrew formula metadata
sudo port install gdbMacPorts ports tree · devel/gdb/Portfile · ソース: api.github.com
sudo apk add gdbAlpine Linux edge package indexes · gdb · ソース: dl-cdn.alpinelinux.org
sudo dnf install gdbFedora Rawhide package metadata · gdb · ソース: dl.fedoraproject.org
nix profile install nixpkgs#gdbnixpkgs package indexes · pkgs/by-name/gd/gdb/package.nix · ソース: api.github.com
sudo pacman -S gdbArch Linux sync databases · gdb · ソース: geo.mirror.pkgbuild.com
sudo zypper install gdbopenSUSE Tumbleweed package metadata · gdb · ソース: download.opensuse.org
scoop install main/gdbScoop official bucket manifest trees · bucket/gdb.json · ソース: api.github.com
概要
GNU debugger
履歴
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.
セキュリティ状態
doc example: debugger and process inspection tool.
リスク red · 信頼度 高 · escape-surveillance-offensive
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
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./.gdbinit実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
gcore | cli | グローバル実行可能ファイル | |
gdb | cli | グローバル実行可能ファイル | |
gdb-add-index | cli | グローバル実行可能ファイル | |
gdbserver | cli | グローバル実行可能ファイル | |
gstack | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
https://www.gnu.org/software/gdb/
インストールメタデータ
| パッケージキー | brew:gdb |
|---|---|
| バージョン | 17.2 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/gdb |
| ホームページ | https://www.gnu.org/software/gdb/ |
| リポジトリ | https://sourceware.org/git?p=binutils-gdb.git |
| 上流ドキュメント | https://sourceware.org/gdb/current/onlinedocs/gdb |
| ライセンス | GPL-3.0-or-later |
| ソースアーカイブ | https://ftpmirror.gnu.org/gnu/gdb/gdb-17.2.tar.xz |
| 最終更新 | 2026-05-10T20:39:26Z |
| Pulse | updated |
| 依存関係 | gmp, mpfr, ncurses, python@3.14, readline, xz, zstd |
| ビルド依存関係 | pkgconf, texinfo |
| macOS 提供ライブラリ | expat |
| Bottle | 利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
| 注意点 | gdb requires special privileges to access Mach ports. You will need to codesign the binary. For instructions, see: https://sourceware.org/gdb/wiki/PermissionsDarwin |
レジストリ情報
| 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 |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
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 gdbソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.