gdb

Install command:
brew install gdb

GNU debugger

https://www.gnu.org/software/gdb/

License: GPL-3.0-or-later

Development: Pull requests

Formula JSON API: /api/formula/gdb.json

Formula code: gdb.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
sonoma ✅
macOS on
Intel
sonoma ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 17.2
head ⚡️ HEAD

Depends on:

gmp 6.3.0 GNU multiple precision arithmetic library
mpfr 4.2.2 C library for multiple-precision floating-point computations
ncurses 6.6 Text-based UI library
python@3.14 3.14.8 Interpreted, interactive, object-oriented programming language
readline 8.3.6 Library for command-line editing
xz 5.8.4 General-purpose data compression with high compression ratio
zstd 1.5.7 Zstandard is a real-time compression algorithm

Depends on when building from source:

pkgconf 3.0.7 Package compiler and linker metadata toolkit
texinfo 7.3 Official documentation format of the GNU project

Uses from macOS: expat (since macOS Sequoia)

Binaries: gdb, gdb-add-index, gstack

gdb requires special privileges to access Mach ports.
You will need to codesign the binary. For instructions, see:

    https://sourceware.org/gdb/wiki/PermissionsDarwin

Analytics:

30 days90 days365 days
Installs5373,37124,490
Installs (--HEAD)0639
Installs on Request5222,96723,463
Installs on Request (--HEAD)0639
Build Errors13