Today, I tried to debug a native program generated by an Eclipse project created from existed makefile. Eclipse complains: Program is not a recognized executable. Though it may run that app and I can debug it by invoking gdb in terminal.

And it is because Eclipse doesn’t use March-O 64 binary parser by default! There are official documents for how to change binary parser :

Then I notice there are some obvious difference after binary parser is right.

  • There are ” – [x86_64/le]” postfix for each executable.
  • When right clicking the binary in Project Explorer and clicking debug, there is “debug local c/c++ application” beside debug configurations.
  • In debug configurations,  search project button under C/C++ Application field in Main tab can list all executable.

This site uses Akismet to reduce spam. Learn how your comment data is processed.