我用http://linux.chinaunix.net/techdoc/develop/2008/12/28/1055528.shtml上面介绍的方法编译了arm-none-linux-guneabi-gdb和gdb-server(该网页上提到用arm-linux-gcc的地方改成arm-none-linux-guneabi-gcc).但在目标板上调试hello world程序的时候,先执行./gdbserver 192.168.1.103 ./hello,再在主机执行arm-none-linux-gnueabi-gdb ./hello和target remote 192.168.1.102:2345后主机提示错误如下:
(gdb) target remote 192.168.1.102:2345
Remote debugging using 192.168.1.102:2345
Malformed packet(b) (missing colon): ore:0;
Packet: 'T050b:00000000;0d:10becebe;0f:b0d70b40;thread:58b;core:0;'
目标板上提示如下:
root@dm816x-evm:/test# ./gdbserver 192.168.1.103:2345 ./hello
Process ./hello created; pid = 1419
Listening on port 2345
Remote debugging from host 192.168.1.103
readchar: Got EOF
Remote side has terminated connection. GDBserver will reopen the connection.
请问有人知道怎么回事吗?谢谢
Feng Dong:
pls check linux debug on CCS on wiki. You can use CCS debug
Tuff Li:
回复 Feng Dong:
看你的过程是对的,你的hello world可执行程序是怎么来的?
Huang Tan:
回复 Tuff Li:
helloword可执行程序是这么来的
在主机的linux命令行中打入arm-none-linux-gnueabi-gcc -g -o helloworld helloworld.c
Huang Tan:
回复 Tuff Li:
helloword可执行程序是这么来的
在主机的linux命令行中打入arm-none-linux-gnueabi-gcc -g -o helloworld helloworld.c