android gdbserver 远程调试

在目标手机上运行 ./gdbserver :1234 ./inferXlite

在开发机上运行 /path/to/gdb/arm-linux-androideabi-gdb,打开gdb

(gdb) shell adb forward tcp:1234 tcp:1234

(gdb) set solib-absolute-prefix ./opt/to/lib/path

(gdb) set solib-search-path ./armeabi-v7a

(gdb) target remote :1234 (或者 target remote localhost :1234)

猜你喜欢

转载自blog.csdn.net/pekingfloater/article/details/77097301