I’ve been trying to get a basic Hello World with debugging going in VS Code (w/ the “Ada & Spark” plugin) on macOS (aarch64) and am not having any luck. I tried the aarch64 alr and gcc, but wasn’t able to start a debugger, which led me to this which makes it look like it’s not supported yet. If that’s not possible, is it possible to run x86_64 (w/ Rosetta) on an aarch64 Mac? I’ve tried to get it going with x86_64 alr and arch -x86_64 alr toolchain --select
“gnat_native” which gives an x86_64 toolchain (though I don’t know if this is the right way to try to force x86_64).
~ $file -b ~/.local/share/alire/toolchains/gnat_native_13.2.2_9be96041/bin/gcc
Mach-O 64-bit executable x86_64
This then led to the debugger finally starting but it would just hang and not reach the first line of code. It also gave a code signing warning about gdb
, which I got to go away by using part of this. Still though, the debugger hangs and never reaches the first line of code.
I’m probably missing something obvious, but is VS Code debugging not available yet at all for aarch64 macOS?
Edit: I’ve also tried SSHing into a Docker container running x86_64 linux and gdb
seems to have register issues when under emulation.