You will need to set up your environment for running MIPS.
A convenient way is using Docker: ccr.ccs.tencentyun.com/code-server/csc3050
make clean
make all
qemu-mipsel bomb
ormake run
.- If you want to use gdb:
make run-server
gdb-multiarch bomb
# This is used to call gdb.- Inside GDB:
target remote :9999
- Set your breakpoint.
- Use
c
to continue. Usesi
to step into assembly. Useni
to go to next assembly. - Use
disassemble
to display the assembly code.
Good Luck!