richardsmart
驱动牛犊
驱动牛犊
  • 注册日期2002-03-12
  • 最后登录2005-04-13
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1300回复:0

问个gdbserver Got eof问题

楼主#
更多 发布于:2003-10-10 10:38
本人用gdbserver出了点问题,

具体情况:
两台机器A,B各一个网卡,通过对绞网线连接,两台机器都没有设置firewall,
且都是root登陆。

A RH9  pc(littel endian)作为host     其ip: 10.1.1.5
B RISC pc(littel endian)作为target   其ip: 10.1.1.100
 
现在在target B上先运行gdbserver ,如:
gdbserver :3333 prg1                       #gdbserver由厂商提供
                                           #此时3333 port没被其它占用
Process prg1 create; pid = 469
remote debugging using :3333
 
 
<一>
然后在host A上运行xxx-gdb -nw prg1         #xxx-gdb是此host的gdb
                                           #由厂商提供
>target remote 10.1.1.100:3333
此时却显示


>10.1.1.100:No such file or directory
这时target B上无任何其它更新显示
 
<二>
然后在host A上运行xxx-gdb prg1 (图形界面)  #xxx-gdb是此host的gdb
                                           #由厂商提供
选择File->Target Settings
在出现的窗口中选择
Target    : Remote/TCP
Hostname  : 10.1.1.100
port      : 3333
然后再选择Run->Connected to target
此时出现另一个窗口提示
 10.1.1.100:3333: Success
 GDB cannot connect to the target board using 10.1.1.100:333.Verigy that
 the board is securely ....
 
这时target B出现最新显示
readchar:Got EOF
Remote side has terminated connecting.Gdbserver will reopen the connect
Remote debugging using :3333


换其它端口也是这样,请问大概是哪些原因造成这样的?怎么去解决?
游客

返回顶部