Install command:
brew install gdb

GNU debugger

License: GPL-3.0-or-later

/api/formula-linux/gdb.json (JSON API)

Linux formula code on GitHub

Bottle (binary package) installation support provided for Linux platforms:

Intel x86_64 64-bit linux

Current versions:

stable 10.1
head ⚡️ HEAD

Depends on:

python@3.9 3.9.1 Interpreted, interactive, object-oriented programming language
xz 5.2.5 General-purpose data compression with high compression ratio
gcc@7 7.5.0 GNU compiler collection
expat 2.2.10 XML 1.0 parser
ncurses 6.2 Text-based UI library
guile 3.0.5 GNU Ubiquitous Intelligent Language for Extensions

Depends on when building from source:

texinfo 6.7 Official documentation format of the GNU project
pkg-config 0.29.2 Manage compile and link flags for libraries

Conflicts with: i386-elf-gdb, x86_64-elf-gdb

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

On 10.12 (Sierra) or later with SIP, you need to run this:

    echo "set startup-with-shell off" >> ~/.gdbinit


Installs (30 days)
gdb 151
Installs on Request (30 days)
gdb 151
Build Errors (30 days)
gdb 21
Installs (90 days)
gdb 759
gdb --HEAD 8
Installs on Request (90 days)
gdb 759
gdb --HEAD 8
Installs (365 days)
gdb 1,624
gdb --HEAD 9
Installs on Request (365 days)
gdb 1,618
gdb --HEAD 9
Fork me on GitHub