I am trying to use Eclipse with CDT to debug 64 bit binary. The binary is built outside of Eclipse and works just fine. I run the binary outside of eclipse and then try to connect to the process using the "C / C ++ Attach to Application" debugging configuration configuration.
I can select a process from the list that appears when starting the debug configuration, however I get the following error message:
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
Everything works fine if I create an i386 target.
I'm not quite sure where to do this, I read that this may be related to binary parsing in Eclipse:
This link refers to parsers, and this link describes a bug with the PE parser, which is fixed.
I am running Eclipse Indigo with Eclipse CDT 8.0.0 on Linux x64. I tried "Elf Parser" and "GNU Elf Parser" in the project_properties / C ++ _ build / settings file with no luck.
File Information:
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 and gdbinit files are Eclipse defaults
source share