【发布时间】:2012-08-25 16:13:33
【问题描述】:
这里是工具栈:安装在 Windows 7 (x64) 上的是带有 CDT 和 SConsolidator 插件的 Eclipse (Juno x64)。下面是安装了 64 位支持的 TDM-GCC (x64) 包。
如果我构建一个 64 位应用程序并使用 Eclipse(它使用与 GCC 捆绑在一起的 gdb)对其进行调试,它构建时不会出错并且调试良好。
当我构建一个 32 位应用程序并尝试使用 Eclipse 对其进行调试时,它构建良好但 gdb 失败:
gdb: unknown target exception 0x4000001f...
通过命令行使用相同的 gdb 调试它可以正常工作。
关于如何解决这个问题的任何想法?
仅供参考:以下是导致 gdb 异常的一些警告:
warning: `C:\Windows\system32\ntdll.dll': Shared library architecture i386:x86-64 is not compatible with target architecture i386.
warning: `C:\Windows\SYSTEM32\wow64.dll': Shared library architecture i386:x86-64 is not compatible with target architecture i386.
warning: `C:\Windows\SYSTEM32\wow64win.dll': Shared library architecture i386:x86-64 is not compatible with target architecture i386.
warning: `C:\Windows\SYSTEM32\wow64cpu.dll': Shared library architecture i386:x86-64 is not compatible with target architecture i386.
warning: Could not load shared library symbols for ntdll32.dll.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for WOW64_IMAGE_SECTION.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for WOW64_IMAGE_SECTION.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for NOT_AN_IMAGE.
Do you need "set solib-search-path" or "set sysroot"?
warning: Could not load shared library symbols for NOT_AN_IMAGE.
Do you need "set solib-search-path" or "set sysroot"?
【问题讨论】:
标签: eclipse gdb scons eclipse-cdt