symbol-file testg
list
run
Starting program:/usr/local/arm-gdb/bin/testg
Don't kown how to run Try "help target"
cont
The program is not being run
原来
list
只列出一半的源代码
流程
[root@XSBASE /root]#./gdbserver 192.168.1.51:1234 testg //试验箱,
[root$super temp]#./arm-linux-gdb testg //主机
[root$super temp]#./gdbserver 192.168.1.50:1234 test //主机
(gdb)symbol-file test //主机
(gdb) list //主机
...
(gdb) list //主机
(gdb) break 9 //主机
(gdb) cont //主机
(gdb) step //主机
...
192.168.1.51 //主机地址
192.168.1.50 //目标机(试验箱)地址