🌐
Homebrew
formulae.brew.sh › formula › gdb
gdb — Homebrew Formulae
brew install gdb · GNU debugger · https://www.gnu.org/software/gdb/ License: GPL-3.0-or-later · Formula JSON API: /api/formula/gdb.json · Formula code: gdb.rb on GitHub ·

source-level debugger

GNU_gdb_12.1_screenshot.png
The GNU Debugger (GDB) is a portable debugger that runs on many Unix-like systems and works for many programming languages, including Ada, Assembly, C, C++, D, Fortran, Haskell, Go, Objective-C, OpenCL C, … Wikipedia
Factsheet
Developer GNU Project
Initial release 1986; 39 years ago (1986)
Stable release 16.3
/ 20 April 2025
Factsheet
Developer GNU Project
Initial release 1986; 39 years ago (1986)
Stable release 16.3
/ 20 April 2025
🌐
UCI ICS
ics.uci.edu › ~pattis › common › handouts › macmingweclipse › allexperimental › mac-gdb-install.html
ICS 46: GDB Installation on Mac OS X
As with GCC, the easiest way to install GDB is through Homebrew. In a Terminal window, run the command brew install gdb, and wait for it to complete.
🌐
GitHub
gist.github.com › mike-myers-tob › 9a6013124bad7ff074d3297db2c98247
Steps to get GDB actually working in April 2021 on macOS (Intel x86-64 only) · GitHub
HOMEBREW_NO_INSTALL_FROM_API=1 ... Formula/g/gdb.rb # Pick a commit you want to roll back to git checkout <commit_sha> brew install ./Formula/g/gdb.rb # Or Formula/gdb.rb, if you check out # a commit from before the ...
🌐
GitHub
github.com › orgs › Homebrew › discussions › 1114
Support for gdb on m1? · Homebrew · Discussion #1114
It gives an error as Error: gdb: no bottle available! You can try to install from source with: brew install --build-from-source gdb Please note building from source is unsupported. You will encounter build failures with some formulae.
🌐
University of Maryland Department of Computer Science
cs.umd.edu › ~nelson › classes › resources › computer_systems › gcc_gdb_emacs_in_mac
gcc/gdb/emacs in a Mac
Install Homebrew (https://brew.sh/). After the Homebrew installation has been completed you can install gcc, gdb, emacs by executing on a Mac terminal:
🌐
Homebrew
formulae.brew.sh › formula › x86_64-elf-gdb
x86_64-elf-gdb — Homebrew Formulae
brew install x86_64-elf-gdb · GNU debugger for x86_64-elf cross development · https://www.gnu.org/software/gdb/ License: GPL-3.0-or-later · Formula JSON API: /api/formula/x86_64-elf-gdb.json · Formula code: x86_64-elf-gdb.rb on GitHub ·
🌐
GitHub
gist.github.com › danisfermi › 17d6c0078a2fd4c6ee818c954d2de13c
Setup gdb on Mac OS Sierra/High Sierra · GitHub
Here are the steps to installing and setting up GDB on Mac OS Sierra/High Sierra. Run brew install gdb.
Find elsewhere
🌐
DEV Community
dev.to › jasonelwood › setup-gdb-on-macos-in-2020-489k
Install Gdb Mac: Setup gdb on macOS in 2020 - DEV Community
September 18, 2020 - In order to install gdb type the command: brew install gdb · You can confirm whether gdb is installed properly by running: gdb --version · If everything went well then you're ready to move on to the next step!
🌐
Quora
quora.com › How-can-I-install-GDB-on-a-Mac
How to install GDB on a Mac - Quora
Answer (1 of 7): The question is “How can I install GDB on a Mac?” I’ve never tried - but if you’re using Xcode or the “command line development tools” on the Mac from Apple and want to use a command line debugger, then use “lldb” instead (llvm/clang seems to be the native compiler.)
🌐
Unconj
unconj.ca › blog › setting-up-gdb-for-debugging-python-on-os-x.html
Setting up GDB for Debugging Python on OS X | Unconstant Conjunction
Assuming you have Homebrew – ... a policy you can read on the wiki), so you’ll have to: $ brew tap homebrew/dupes · first, and then run: $ brew install gdb ·...
🌐
Apple Community
discussions.apple.com › thread › 253272158
gdb compiler - Apple Community
I’d expect gdb to install with gcc, so (if this is not already what you are trying) try installing gcc: https://formulae.brew.sh/formula/gcc · Reply · Link · User profile for user: elibb · elibb Author · User level: Level 1 · 4 points · Oct 19, 2021 6:16 AM in response to MrHoffman ·
🌐
Homebrew
formulae.brew.sh › formula › arm-none-eabi-gdb
arm-none-eabi-gdb — Homebrew Formulae
brew install arm-none-eabi-gdb · GNU debugger for arm-none-eabi cross development · https://www.gnu.org/software/gdb/ License: GPL-3.0-or-later · Formula JSON API: /api/formula/arm-none-eabi-gdb.json · Formula code: arm-none-eabi-gdb.rb ...
🌐
GitHub
github.com › Homebrew › homebrew-core › issues › 108309
gdb installation does not work on Mac M1 machines. · Issue #108309 · Homebrew/homebrew-core
May 5, 2022 - Error: gdb: An unsatisfied requirement failed this build. ... $ brew install gdb gdb: The x86_64 architecture is required for this software.
Published   Aug 17, 2022
🌐
MacPorts
ports.macports.org › port › gdb
Install gdb on macOS with MacPorts
To install gdb, run the following command in macOS terminal (Applications->Utilities->Terminal)