M1 的 Docker 运行 amd64 的镜像用的是 QEMU ,不支持 ptrace ,GDB 会报错:
(gdb) r
Starting program: /opt/vulnerable2.x
warning: Error disabling address space randomization: Operation not permitted
warning: Could not trace the inferior process.
warning: ptrace: Function not implemented
During startup program exited with code 127.
有人知道应该怎样解决吗,感谢!