Problems while debugging large project [message #1449759] |
Tue, 21 October 2014 16:08  |
Eclipse User |
|
|
|
Hi, I have a question about debugging.
I'm trying to work on a large project and encountering a problem with debugging. The function that I would like to debug is in a separate cpp file, say a.cpp. That a.cpp is far from the source file where main() is.
That function in a.cpp is not called directly by main(). Instead, main() has to generate a GUI interface where I can call that function so that the breakpoints can be activated. I'm not sure how to do that.
I'm new to Eclipse, any advice is welcome. Thank you so much!
|
|
|
|
|
|
Re: Problems while debugging large project [message #1451914 is a reply to message #1451458] |
Fri, 24 October 2014 09:40  |
Eclipse User |
|
|
|
The problem is "No source available for "memset@plt() at 0x40a478".
At first 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(). What is amazing is the disassembly code can be executed line by line, but when it tried to step into a function, it always shows no source available.
The source files, the objective files, and the executables are in different places.
I compiled it with -g3. The source lookup location is set as absolute path and compilation directory (include subdirectories). Any suggestion is appreciated. Thank you.
[Updated on: Fri, 24 October 2014 14:10] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.23609 seconds