arm GDB

来源:互联网 发布:win7 centos双系统 编辑:程序博客网 时间:2024/06/06 07:38

assume your pc ip is 192.168.0.141
your phone ip is 192.168.0.213

open one terminal

adb shell cd /data/zxz./gdbserver 192.168.0.141:1234 ./a.out

open another terminal

path/to/arm-gdb ./a.outtarget remote 192.168.0.213:1234

an alternative way is to use local port on phone, then connect the port on phone and the one on pc

# on phonegdbserver  :1234  a.outadb  forward tcp:1234  tcp:1234    # on pcpath/to/arm-gdb ./a.outtarget  remote  localhost:1234
原创粉丝点击