【问题标题】:mingw + gcc + gnu + -ggdb -g3 but debugging failed "no source info"mingw + gcc + gnu + -ggdb -g3 但调试失败“无源信息”
【发布时间】:2017-08-25 02:16:02
【问题描述】:

在具有相同 i686-w64-mingw32-gcc 的 Windows 下,我有两个 C++ 项目。两者都带有“-ggdb -g3 -O0”——我可以在 Eclipse 中调试的较小项目,但较大的项目显示“无可用源”。两个项目都带有“-static-libgcc -static-libstdc++”

我不知道是什么破坏了它:(

小项目快乐gdb:

较大的项目不满意 gdb:

好的makefile: https://github.com/rusefi/rusefi/blob/temp_branch/unit_tests/Makefile https://github.com/rusefi/rusefi/blob/temp_branch/unit_tests/rules.mk

错误的生成文件: https://github.com/rusefi/rusefi/blob/temp_branch/win32_functional_tests/Makefile https://github.com/rusefi/rusefi/blob/temp_branch/win32_functional_tests/rules.mk

两个项目都使用 objdump.exe --syms 显示符号:

好的项目符号: https://github.com/rusefi/rusefi/blob/temp_branch/unit_tests/symbols

错误的项目符号: https://github.com/rusefi/rusefi/blob/temp_branch/win32_functional_tests/symbols

我希望能够调试这两个项目。我究竟做错了什么? :(

【问题讨论】:

    标签: c++ eclipse gcc makefile


    【解决方案1】:

    更新:我找到了解决方法:

    i686-w64-mingw32-gcc(32 位嵌入 Cygwin64)不适用于 cygwin64 中的 gdb

    但如果一切都是基于 32 位 cygwin 的,那么一切都会按预期工作!重申一下 - 一个项目使用来自 cygwin64 的 32 编译器,而另一个项目不使用,所以必须有所不同 - 但因为我有一个解决方法,所以我很好。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-01-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多