打印

gdb+gdbserver求指教

[复制链接]
2523|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
aoyun2008|  楼主 | 2011-3-18 17:09 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
介绍一下我开发中遇到的问题:
arm-uclibc-linux-gcc 编译器
主机    IP : 192.168.1.224
目标机 IP : 192.168.1.223
通过nfs把host下的temp目录mount到target目标板子上mount下,可执行文件hello放在主机目录temp下.
->在目标机上使用gdbserver 192.168.1.224:2345 /mount/hello
提示:
Process test created; pid = 476
Listening on port 2345

->在主机上使用arm-uclibc-linux-gdb /temp/hello
GNU gdb 6.3.50.20050627-cvsCopyright 2004 Free Software Foundation, Inc.GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions.Type "show copying" to see the conditions.There is absolutely no warranty for GDB.  Type "show warranty" for details.This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-uclibc-linux"...
(gdb) target remote 192.168.1.223:2345
Remote debugging using 192.168.1.223:2345
[New thread 476]
Malformed packet(b) (missing colon): re:0;//数据包畸形
Packet: 'T050b:00000000;0d:509ef9be;0f:c0090040;thread:1dc;core:0;'


在目标机上面提示:
Listening on port 2345
Remote debugging from host 192.168.1.224
readchar: Got EOF
Remote side has terminated connection.  GDBserver will reopen the connection.
Listening on port 2345
Remote debugging from host 192.168.1.224
readchar: Got EOF
Remote side has terminated connection.  GDBserver will reopen the connection.
Listening on port 2345


求教问题出在哪里,是TCP参数需要重新设置一下吗?

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

15

主题

27

帖子

0

粉丝