GDB debugger for macOS Apple Silicon

GDB debugger is not yet readily available for macOS with Apple Silicon CPU. GDB is installable on Apple Silicon Macs via Homebrew, but it is not functional on Apple Silicon Macs for local executables.

It has long been possible to use a virtual machine with Linux for ARM64 to run GDB within the VM. When trying to use GDB on Apple Silicon for local executables, it doesn’t work:

gdb ./myexe
r

Don’t know how to run. Try “help target”.

To use GDB on an Apple Silicon Mac for local executables, it seems a Linux VM is the best option.