目標 筆者の実機(M1 Mac, AArch64)でx86_64のDockerコンテナを立ち上げ、その上でQEMUを用いてリモートデバッグをする 手順 x86_64なDockerコンテナを起動し、コンテナに入る docker run -it --platform linux/amd64 ubuntu:latest qemu-user-static gdb及びコンパイラ含め必要なツールをインストールする apt update apt install qemu-user-static gdb gcc vim プログラムを書いてデバッグ情報付きでコンパイルする(a.outはx86_64のバイナリ) …