Problem with debugging: no source available [message #1454813] |
Tue, 28 October 2014 20:03 |
Fang Wang Messages: 9 Registered: October 2014 |
Junior Member |
|
|
I'm new to eclipse, and I got a problem with debugging my code. I use CDT Version: Kepler Service Release 2, Build id: 20140224-0627.
The project I'm working on is a large one. The source files, the objective files, and the executables are in seperate places.
When I first tried to debug, it shows "No source available for main()". So I set a breakpoint in main(). Now It can find main(), but not any functions called in main(). For example, the first function called is memset, and the message shows No source available for memset@plt().
The disassembly code can be executed line by line, but when it tried to step into a function, it always shows no source available.
I compiled it with -g3. The source lookup location is set as absolute path and compilation directory (include subdirectories).
Google about this problem and tried almost all the available solutions, but nothing fixed the problem I have. Any suggestion is appreciated. Thank you so much!
[Updated on: Tue, 28 October 2014 20:15] Report message to a moderator
|
|
|
|
Re: Problem with debugging: no source available [message #1457581 is a reply to message #1457523] |
Fri, 31 October 2014 13:27 |
Fang Wang Messages: 9 Registered: October 2014 |
Junior Member |
|
|
Thank you so much for the reply. memset() is an example, basically it happens for every function that is called in main(), it happens for main() too if I don't set the breakpoint at main().
Does it have something to do with the fact that the source files, the object files and the executables are in different folders, not within a subfolder.
[Updated on: Fri, 31 October 2014 13:29] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.02763 seconds