I have an M2 Macbook that is running Docker Desktop and I’d like to be able to debug linux/amd64 binaries in linux/amd64 containers.
Debugging under qemu directly or UTM works fine. So I know it is not a Qemu limitation. I even tried hard-swapping the Qemu binary on my system with the Qemu binary packaged with Docker. I also recently tried enabling the new Rosetta emulation support.
It’s weird because when I use default emulation it will give an error about SYS_PTRACE not implemented. But qemu has absoluted implemented sys_ptrace because I can run and build qcow images to support debugging amd64 on ARM.
Rosetta complains because of PTRACE_GETREGS fails.
I was really hoping when the enabled Rosetta support it would fix this.