|
前段时间感谢峰峰版主和macarthor等大虾的指点,交叉调试环境终于眼看成功了,可是却碰到一个小问题:
通过minicom我在开发板端输入:gdbserver 192.168.0.11:5050 foo,出现下面信息:
Process foo created; pid=31
code at 0c39c040-0c39d160, data at 0c39d164
然后我在宿主机输入:gdb -q
(gdb) target remote 192.168.0.100:5050
过一会儿后宿主机出现如下信息:
Remote debugging using 192.168.0.100:5050
Couldn't establish connection to remote target
Reply contains invalid hex digit 59
在minicom(开发板端)出现如下信息:
Remote debugging using 192.168.0.11:5050
Readchar : Got EOF
Remote side has terminated connection. GDBserver will reopen the connection
(注:192.168.0.11是PC的IP,192.168.0.100是开发板的IP,
foo是我要调试的程序,我已经将它编译到内核,开发板上电运行操作系统后,从 minicom里能够看见它位于文件甲bin下,我启动gdbserver前已经进入bin的目录下了) |
|