GDB debugger for macOS Apple Silicon

While it is possible to use a virtual machine with Linux for ARM64 to run GDB within the VM, GDB debugger is installable directly on macOS via Homebrew. GDB on macOS requires code signing

Without code signing, GDB on Apple Silicon for local executables doesn’t work:

gdb ./myexe
r

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


Reference: Homebrew commit adding Apple Silicon support for GDB.