使用Eclipse通过gdbserver进行远程调试
有谁知道为什么当我使用目标远程命令在命令行上使用 gdb 管理设备时无法使用 Eclipse CDT 远程调试设备?连接时我确实收到警告,但除此之外它似乎工作正常。
使用 Eclipse,我应该有正确的设置,gdbserver 会在远程计算机上通知我已建立连接,但之后 Eclipse 会给出错误:“启动调试”遇到问题。请求失败:目标未响应(超时)。远程设备还显示“杀死劣等”(我在 gdb 中没有得到)。错误日志也没有显示任何其他内容。
我在这两种情况下都使用相同的进程、二进制和 gdb 可执行文件,并连接到相同的设备和设备。港口。我使用的是 gdb 7.1,主机是 64 位 Ubuntu Lucid。
Does anyone know why I can't use Eclipse CDT to remotely debug a device when I manage it on the command-line with gdb using target remote command? I do get a warning when connecting, but other than that it seems to work fine.
With Eclipse I should have the correct settings and gdbserver informs me on the remote machine that a connection was establised but after that Eclipse gives an error: 'Launching Debug' has encountered a problem. The request failed: Target is not responding (timed out). Remote device also says "Killing inferior" (which I don't get with gdb). The error log shows nothing else either.
I am using the same process, binary and gdb executable in both cases and connecting to the same device & port. I'm using gdb 7.1 and the host is 64-bit Ubuntu Lucid.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我遇到了同样的问题,发现 iptables 产生了问题。
您是否尝试过停止或禁用防火墙?如果是 iptables,您必须执行以下操作:
另一方面,在启动应用程序后(在连接调试器之前),您是否通过 netstat 检查了调试端口的可用性?
希望能有所帮助。
I had same issue and found that iptables was generating issues.
Have you tried stopping or disabling your firewall? In case of iptables you have to do:
On the other hand, after you start your application (before connecting your debugger) have you checked the debug port availability through netstat?
Hope to help.