【发布时间】:2011-11-04 04:49:09
【问题描述】:
我正在尝试使用带有 CDT 的 Eclipse 来调试 64 位二进制文件。该二进制文件是在 Eclipse 之外构建的,并且运行良好。我在 Eclipse 之外启动二进制文件,然后尝试使用“C/C++ 附加到应用程序”调试配置类型附加到进程。
我可以从运行调试配置时弹出的列表中选择进程,但是,我收到以下错误消息:
Error in final launch sequence
Failed to execute MI command:
attach 22014
Error message from debugger back end:
"program.x64": not in executable format: File format not recognized
如果我为 i386 目标构建,一切正常。
我不太确定该去哪里,我读到它可能与 Eclipse 中的二进制解析器有关:
This link 提到了解析器,this link 描述了 PE 解析器的一个错误,该错误已修复。
我在 Linux x64 上运行带有 Eclipse CDT 8.0.0 的 Eclipse Indigo。我在 project_properties/c++_build/settings 下尝试了 'Elf Parser' 和 'GNU Elf Parser',但没有成功。
文件信息:
hostmachinea:file program.x64
programs.x64: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped
GDB 和 gdbinit 文件是 Eclipse 的默认文件
【问题讨论】:
标签: eclipse gdb eclipse-cdt