Bug 344470 - Project-less debugging does not work natively on Windows
Summary: Project-less debugging does not work natively on Windows
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf-gdb (show other bugs)
Version: 7.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 8.3.0   Edit
Assignee: Marc-André Laperle CLA
QA Contact: Marc Khouzam CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-02 10:59 EDT by Marc Khouzam CLA
Modified: 2014-01-15 16:38 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Khouzam CLA 2011-05-02 10:59:23 EDT
In bug 344408 comment #1, Toni mentions that: "project-less debugging does not work natively on Windows, because the binary is not recognized as an executable by the default binary parser (which is always the ElfParser)."
Comment 1 Klaus Klaus CLA 2011-11-14 15:27:38 EST
I stumbled over the same problem:

I choose a binary (compiled with MinGW) on my disk and try to debug it using Eclipse.

According to the CDT-FAQ this should be possible in Indigo:

When I run this debug configuration, I always get the error message "Program is not a recognized executable."

To verify this, I created the simple "Hello World ANSI C Project" example which is integrated in the CDT plugin. I could compile and debug the "hello.exe" example and it works like a charm.

If I close the Hello World project and create a project-less configuration like it is described in the FAQ, than I always get the error "Program is not a recognized executable" when i try to execute the same "hello.exe" example.

My system:
Win XP, Eclipse Indigo + CDT 8, MinGW, GDB 7.3.1
Comment 2 Marc Khouzam CLA 2012-05-18 13:47:41 EDT
Maybe a way to fix this is to use what Marc-Andre used to get the JUnit tests to run on Windows.  See Bug 378834 comment 2
Comment 3 Marc-André Laperle CLA 2013-08-10 21:23:02 EDT
This works now that bug 382462 is fixed.