Install command:
brew install gdb

GNU debugger

License: GPL-3.0-or-later

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

Formula code: gdb.rb on GitHub

Bottle (binary package) installation support provided for:

Intel sonoma
64-bit linux

Current versions:

stable 14.2
head ⚡️ HEAD

Depends on:

gmp 6.3.0 GNU multiple precision arithmetic library
mpfr 4.2.1 C library for multiple-precision floating-point computations
python@3.12 3.12.4 Interpreted, interactive, object-oriented programming language
xz 5.4.6 General-purpose data compression with high compression ratio

Depends on when building from source:

texinfo 7.1 Official documentation format of the GNU project

Requires: x86_64 architecture

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


Installs (30 days)
gdb 2,733
gdb --HEAD 3
Installs on Request (30 days)
gdb 2,727
gdb --HEAD 3
Build Errors (30 days)
gdb 5
gdb --HEAD 1
Installs (90 days)
gdb 9,834
gdb --HEAD 9
Installs on Request (90 days)
gdb 9,779
gdb --HEAD 9
Installs (365 days)
gdb 45,535
gdb --HEAD 76
Installs on Request (365 days)
gdb 45,252
gdb --HEAD 76
Fork me on GitHub