GDB调试器问题 - 没有名称的源文件 [英] GDB debugger problems - No source file named

查看:101
本文介绍了GDB调试器问题 - 没有名称的源文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于某些原因,我不能让gdb在调试时识别项目中的文件。我尝试了各种各样的事情,包括下载不同的版本,等等,我做的最后一件事是完全覆盖所有的MingW与暮光龙媒体的捆绑包。

For some reason I can't get gdb to recognize the files in my project when debugging. I've tried a variety of things, including downloading different version, etc. and the last thing I did was completely overwrite all of MingW with Twilight Dragon Media's Bundle Package.

有谁知道如何解决这个问题?奇怪的是,当我第一次使用它,它是工作正常,然后它突然停止工作。

Does anyone know how to solve this issue? The odd thing was that when I first started using it, it was working fine, and then it suddenly stopped working.

我使用Code :: Blocks,我有-g检查项目的调试版本。我在Windows Vista上运行。

I'm using Code::Blocks and I have the -g checked for the debug version of the project. I'm running on Windows Vista.

推荐答案

这可能是点... GDB通过文件路径/对象模块调试信息。所以如果你移动你的源至少你应该重建你的项目。此外,这与你有关,如果你试图获得源支持在不同的主机,没有可见性的所有来源。

It might be point... GDB locates source files by file path/name from object module debug information. So if you moved your sources at least you should rebuild your project. Also this is related to you if you are trying to get source support on different host which has no visibility to your sources at all.

最重要的是要记住:


  • 调试信息不​​包含源本身,仅包含找到它们的路径。

  • Debug information doesn't contain sources itself, only paths where to find them. People often doesn't know it.

对不起,如果不是你的情况,但我只是面对类似的事情,我建议这可能有帮助(至少对于其他人的情况)。

Excuse me if it is not your case but I just faced similar thing and I suggest this might help (at least for other people cases).

这篇关于GDB调试器问题 - 没有名称的源文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆