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 ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 18.1
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.15 3.15.1 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.10 Package compiler and linker metadata toolkit
texinfo 7.3 Official documentation format of the GNU project

Uses from macOS: expat (since macOS Sequoia)

Binaries: gcore, gdb, gdb-add-index, gdbserver, 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
Installs2,6374,60325,223
Installs (--HEAD)3734
Installs on Request2,4784,32524,066
Installs on Request (--HEAD)3734
Build Errors37