- 安装gdb,qemu
1 | sudo pacman -S gdb-multiarch gdb pwndbg qemu qemu-arch-extra |
- 启动程序(以mips为例)
1 | qemu-mips -g 2222 ./mx |
- 启动gdb-multiarch
- set architecture mips
- target remote localhost:2222
1 | sudo pacman -S gdb-multiarch gdb pwndbg qemu qemu-arch-extra |
1 | qemu-mips -g 2222 ./mx |