debugger not synchronised with the source of a static library [message #799150] |
Wed, 15 February 2012 14:01 |
|
Hi all,
I am a low C++ practitioner and Eclipse newbie, but with big expectations. I use gcc 4.5.3 under Linux 2.6.37 and Eclipse 3.5.1.
I have written a static library and a test project that use it. When I debug in the Eclipse environment, I have some strange behaviour like if Eclipse was using an old version of the source file. For example, when I step in the execution, it goes forward and backwards following a for loop. But the lines in the source code are bad. They correspond actually with an old version. As a second example, I had an algorithmic bug in my old version. The debugger returns me the results of this old version in the watch expressions, though the source file has been corrected.
At this point of time, I have to says I don't use any versioning of my projects. I will go there, but it is out of topic of the present post.
I tried to clean, build all, debug and release versions, but that changes nothing.
I deleted the Release and Debug project folder and clean/rebuild all, but it still keep somewhere the old library !
I wondered if, even if it looks stupid, Eclipse had installed my library somewhere. But a # find /usr/local/ -iname "*myUtils*" shows it is not the case. Indeed, everything should be in the WorkSpace.
# find /home/lalebarde/Documents/WorkSpace -iname "*myUtils*"
/home/lalebarde/Documents/WorkSpace/.metadata/.plugins/org.eclipse.core.resources/.projects/MyUtils
/home/lalebarde/Documents/WorkSpace/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/MyUtils
/home/lalebarde/Documents/WorkSpace/.metadata/.plugins/org.eclipse.cdt.core/MyUtils.1327770840397.pdom
/home/lalebarde/Documents/WorkSpace/.metadata/.plugins/org.eclipse.cdt.make.core/MyUtils.sc
/home/lalebarde/Documents/WorkSpace/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.cdt.core.prj-MyUtils.prefs
/home/lalebarde/Documents/WorkSpace/.metadata/.plugins/org.eclipse.debug.core/.launches/MyUtils Debug.launch
/home/lalebarde/Documents/WorkSpace/MyUtils
/home/lalebarde/Documents/WorkSpace/MyUtils/myUtils.cpp
/home/lalebarde/Documents/WorkSpace/MyUtils/Release/myUtils.o
/home/lalebarde/Documents/WorkSpace/MyUtils/Release/myUtils.d
/home/lalebarde/Documents/WorkSpace/MyUtils/Release/libmyUtils.a
/home/lalebarde/Documents/WorkSpace/MyUtils/Debug/myUtils.o
/home/lalebarde/Documents/WorkSpace/MyUtils/Debug/myUtils.d
/home/lalebarde/Documents/WorkSpace/MyUtils/Debug/libmyUtils.a
/home/lalebarde/Documents/WorkSpace/MyUtils/myUtils.h
I expect there is something badly configured in my project, my library, and/or my Eclipse, but I am lost.
Any clue please ?
|
|
|
|
Powered by
FUDForum. Page generated in 0.03099 seconds