When using qemu to simulate Mips debugging. pay attention. If no parameters are added.
The mips program will have problems with the so shared library. because the run cannot find the path
/lib/ld-uClibc.so.0: No such file or directory
So use -L to specify the root directory of the run
./qemu-mipsel -L /mac1200r/_mac1200rv2.bin.extracted/squashfs-root exe_name argument
If you want to use gdb to debug. You can add -g parameter -g port
./qemu-mipsel -L mac1200r/_mac1200rv2.bin.extracted/squashfs-root -strace -g 1234 exe_name argument
Indicates that it is listening on port 1234 of the local machine, waiting for gbd debugging to connect