GDB debug program for macOS Apple Silicon
GDB debug program can be installed on macOS via Homebrew. GDB on macOS with ARM64 Apple Silicon requires code signing as described in the Homebrew gdb formula page.
Without code signing, GDB on Apple Silicon for local executables doesn’t work:
gdb ./myexer
❌️ Don’t know how to run. Try “help target”.
Alternative: use a virtual machine with Linux for ARM64 to run GDB within the VM as usual for a Linux machine.
Reference: Homebrew commit adding Apple Silicon support for GDB.