adb push gdbserver /system/bin 或者 adb push gdbserver /data/ adb shell chmod 777 /data/gdbserver
adb shell cd /data gdbserver 10.0.2.2:1234 /data/hello 或者gdbserver :1234 /data/hello
其中hello是需要調試的程序
telnet localhost 5554 redir add tcp:1234:1234
arm-eabi-gdb hello (gdb) r Starting program: Don't know how to run. Try "help target". (gdb) target remote localhost:1234
之後連接上了就和一般的gdb調試一樣了。
添加Symbols命令:
add-symbol-file /cygdrive/d/workspace/DDTui/libs/armeabi/libslpi.so