Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to get Eclipse to give Cygwin's GDB a posix path to the executable?
    primarykey
    data
    text
    <p>I'm using Eclipse on Windows to program C++ using Cygwin's toolchain. I would like to use it for debugging as well, but my problem is the following:</p> <ul> <li>The executable to debug is in a sub-folder of the workspace (pretty standard, I guess) but not of the actual Project from which the executable is built.</li> <li>Eclipse and GDB have different path formats: Eclipse works with Windows paths, whereas GDB works with posix paths. Eclipse knows <code>D:\Path\To\Exe</code> whereas GDB needs <code>/cygdrive/d/Path/To/Exe</code>.</li> <li>Eclipse <strong>insists</strong> that it can find the executable to debug when I enter the path in the "Debug configurations..." dialog. The "Debug" button is disabled until the path is correct.</li> <li>Eclipse does not seem to take <code>${workspace_loc}</code> in that particular input box.</li> </ul> <p>Is there some hidden option I don't know about? Have you had the problem before?</p> <h1>What I've tried so far</h1> <ul> <li>Forcing Eclipse to pass the path I input to GDB --- <strong>did not work.</strong></li> <li>Fiddling with source lookup paths and path mappings --- <strong>did not work</strong>, it's really just for source files.</li> <li>Creating a C++ Project for the output folder where the executable is, so I could have a relative path to the exe inside the project --- <strong>did not work.</strong></li> </ul> <h1>Things I could still try</h1> <ul> <li>Use the <code>.gdbinit</code> file to discard the path given by Eclipse and load the real executable with posix paths --- tried that, but not very hard.</li> <li>Specify a wrapper as argument to GDB --- pollutes the root of my workspace.</li> <li>Provide my own plug-in to deal with the case --- adds another piece of code to maintain in another language.</li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload