Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » cdt debug can't find source files
cdt debug can't find source files [message #181071] Sat, 16 December 2006 19:28 Go to next message
Eclipse UserFriend
Originally posted by:

I'm trying to debug within cdt but it can't find the source files. I've
added the project and workspace to the source tab for the debug
configuration. I've also run gdb outside of eclipse/cdt and gbd does
recognize the source files (and the locations are correct).

Can anyone suggest what I need to do to get eclipse/cdt to recognize the
source files?

Re: cdt debug can't find source files [message #181091 is a reply to message #181071] Sun, 17 December 2006 17:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by:

My thanks to Christian for the answer. Here's the procedure to get things
working ...

If you're working under Windows, have you set the required mappings?
Maybe Eclipse couldn't find the Source because of the missing mapping to
the (cygwin-)drive where your projects/workspaces are.

When you start Cygwin, enter "mount" and look for the mapping you have:
They may look like this:

Admin@bs11-01xp ~
$ mount
D:\cygwin\bin on /usr/bin type system (binmode)
D:\cygwin\lib on /usr/lib type system (binmode)
D:\cygwin on / type system (binmode)
c: on /cygdrive/c type system (binmode,noumount)
d: on /cygdrive/d type system (binmode,noumount)
e: on /cygdrive/e type system (binmode,noumount)
j: on /cygdrive/j type system (binmode,noumount)
n: on /cygdrive/n type system (binmode,noumount)
u: on /cygdrive/u type system (binmode,noumount)
w: on /cygdrive/w type system (binmode,noumount)
x: on /cygdrive/x type system (binmode,noumount)
y: on /cygdrive/y type system (binmode,noumount)
z: on /cygdrive/z type system (binmode,noumount)

My Projects ara all under J:\Projects, so my mapping needs to be present
in Eclipse as:
/cygdrive/j j:/

Open Eclipse and then click
- Windows => Preferences... => C/C++ => Debug =>Common Source Lookup
- Add a new Path Mapping: click [Add] => Path Mapping => [OK]
- Select the new Mapping => [Edith] => change Name of Mapping "Project
Source" => [Add]
- set "Compilation path" to the Source (Sample cygwin!) "/cygdrive/j"
(without the quotes!)
- set"Local file system path" tho "J:\" (without the quotes!)

Now you are ready ti give it another try.... good luck !

Re: cdt debug can't find source files [message #1428452 is a reply to message #181091] Sun, 21 September 2014 22:05 Go to previous message
Claudio Bottai is currently offline Claudio BottaiFriend
Messages: 1
Registered: September 2014
Junior Member
I can't believe that something that work in helios than don't work in galileo than works good again in kepler and the don't works in luna. Secondo me bevete troppi ponci. Smettete di sviluppare questa caata di programma cosi' la gente smette di usarlo e la facciamo finita con questi fanatici di eclipse dellamifava.
Previous Topic:Configuring IDE for C++11 development
Next Topic:How to link in the pthread library in CDT on linux?
Goto Forum:

Current Time: Sun Dec 10 21:35:18 GMT 2023

Powered by FUDForum. Page generated in 0.01392 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top