I haven’t experienced any problems of this kind so far. There are some very unpleasant bugs in gdb like no breakpoint works in a ctor or dtor, resolving types of variables not always working (probably due to namespaces), etc…
That is to be a problem in Qt, but one can fix. LFLAGS in the Makefile tells what options to be given to LINK (g++ in my case). So, we have to say to qmake it should add “–g” to LFLAGS. We can do that by adding the following line to our calitko.pro:
QMAKE_LFLAGS_DEBUG += -g
Let me know if that works for you and I’ll add this line to calitko.pro.
atul wrote:Dear all
We are passing -g for compiling files ( via CXXFLAGS ) but not in linking…
My gdb was not picking up source correctly… I put -g on the link line and now everything is fine…
I believe this is warranted by many compilers ( ex. SUN CC )
I think g++/gcc also needs this but can’t find the online reference to support my argument ;-)
Let me know what you all think…
— cheers atul
