pr0v3rbs / FirmAE

Towards Large-Scale Emulation of IoT Firmware for Dynamic Analysis
MIT License
603 stars 117 forks source link

can't set breakpoint with gdb-multiarch in remote debug #44

Open Marchibun opened 1 year ago

Marchibun commented 1 year ago

After i selected the gdb-server to remote debug, i launched the gdb-multiarch to connect the target ip and port, since gdb-multiarch need to access firmware's filesysterm, so i typed "sysroot /filepath" to get the right of accessing, but it till not working, and i have try to mount firmware's filesysterm by executing /script/mount.sh, and it nothing changes. how can i fix it ? image

image

image

image

image

pr0v3rbs commented 1 year ago

Sorry for the lateness.

gdb-multiarch can perform without a target filesystem. It can download target binaries from a remote gdbserver.

If you correctly select the target PID in menu 4, then just command target remote 192.168.0.1:1337 in gdb-multiarch.