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 big sur
64-bit linux

Current versions:

stable 10.1
head ⚡️ HEAD

Revision: 1

Depends on:

python@3.9 3.9.4 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.3.0 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 91
Installs on Request (30 days)
gdb 88
Build Errors (30 days)
gdb 4
Installs (90 days)
gdb 297
Installs on Request (90 days)
gdb 290
Installs (365 days)
gdb 1,617
gdb --HEAD 8
Installs on Request (365 days)
gdb 1,607
gdb --HEAD 8
Fork me on GitHub