User forums > Using Code::Blocks

Debug watches problem (Incomplete type)

<< < (3/3)

Multinode Nick:

--- Quote from: mandrav on November 09, 2006, 09:03:14 am ---It's actually the combination of the gcc version used to compile the program and the gdb version. After all, if you think about it, the debugger only knows about the debug symbols the compiler has put in the binary you 're debugging ;).

--- End quote ---

Thank you Mandrav,

I made some searches to find the source and solve this problem, dmoore may be right with de dgb version so I tried another version, but without success. So I decided to build wxWidgets for Visual Studio to see if it could do more (I used it for 9 years so I'm still more efficient on this platform). 1 hour passed and 3GB were drained before I could test my sample on VC to finaly see what happened.

VC debugger goes a little bit deeper in the structure, it goes deep enough to see that wxImage (and many wx classes) use polymorphic objects to store its data. After that level, the MS debugger gets lost and seems unable to do more with it (even with forced casts). So there is no reason to go back to this demonic compiler ;-)...

Is it possible that dgb doesn't receive polymorphic classes symbols from libraries? I would explain everything...


mandrav:
Have you tried with gdb 5.2?

Multinode Nick:

--- Quote from: mandrav on November 09, 2006, 11:19:33 pm ---Have you tried with gdb 5.2?

--- End quote ---

Hi mandrav, sorry for the late response I wasn't at my office for few days.

No I didn't try it, You think an older version will do more that a more recent one?

For my opinion, gdb did as well as vc so it could be enough for me, I have productivity concerns here ;-) This problem did happen only on polymorphic stuff, I can live with that...

Thanks!

Nick

Navigation

[0] Message Index

[*] Previous page

Go to full version