gdb 调试器远程本地主机

发布于 2025-01-15 23:36:02 字数 348 浏览 2 评论 0原文

有人可以帮我解决这个问题吗? 我需要使用 GDB 一步步进行调试,但它被中止了。

(gdb) s
Single stepping until exit from function main,
which has no line number information.
warning: Exception condition detected on fd 536
Remote communication error.  Target disconnected.: No such file or directory.

我已经尝试过使用它来使用普通的 C 代码,它运行得很好,但是当我在我的大项目中使用它时,它会挂起。

Could someone help me with this?
I need to do the debugger step by step with the GDB but it is aborted.

(gdb) s
Single stepping until exit from function main,
which has no line number information.
warning: Exception condition detected on fd 536
Remote communication error.  Target disconnected.: No such file or directory.

I have tried normal c code with it and it worked quite well but when I use it with my big project it hangs.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

π浅易 2025-01-22 23:36:02

错误警告:在 fd 536 上检测到异常情况远程通信错误。目标断开连接。:没有这样的文件或目录。几乎总是意味着远程目标意外死亡。

您没有提到您是否使用标准 gdbserver 或其他远程目标,但是如果您在单独的终端中启动远程目标,然后连接 GDB 并逐步执行,您应该注意到您的远程目标退出(可能崩溃? ),这将对应于 GDB 抛出上述错误的时间。

您应该针对提供远程目标的任何人提交错误。如果这是普通的 gdbserver,那么这就是 GDB 项目本身,但如果它是其他远程目标,那么您应该接近它们。

The errors warning: Exception condition detected on fd 536 and Remote communication error. Target disconnected.: No such file or directory. almost always mean that the remote target has died unexpectedly.

You didn't mention if you are using standard gdbserver, or some other remote target, but if you start your remote target in a separate terminal, and then connect GDB and step through, you should notice that your remote target exits (crashes maybe?), and this will correspond to the time when GDB throws the above error.

You should file a bug against whoever provides your remote target. If this is stock gdbserver, then that would be the GDB project itself, but if it is some other remote target, then you should approach them.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文