No source file named L:/CodeBlocks/Projects/Irr_02/Game.h.
Breakpoint 1 ("L:/CodeBlocks/Projects/Irr_02/Game.h:38) pending.
gdb -v
I just saw that you put the breakpoint into a header file, that does not work.Huh? I do the like all the time, why shouldn't that work?
It is very odd, but in some cases GDB can not find headers. It was like that, and it do not changes for me when I move from Dev-C++ to C::B (it was main reason :D ). Than I move to GDB 6, than to gcc 4, now to gcc with dwarf2... but breakpoint in some headers still are "pending". IMHO, problem is derived from directories project structure. If project has some headers in sub-directories, it is very likely than breakpoints in this files will be lost. I use defines with stub functions to catch breaks.I just saw that you put the breakpoint into a header file, that does not work.Huh? I do the like all the time, why shouldn't that work?
The only thing that confirmedly doesn't work (to my knowledge) is putting breakpoints in constructors (limitation of gdb).
I just saw that you put the breakpoint into a header file, that does not work.Huh? I do the like all the time, why shouldn't that work?
The only thing that confirmedly doesn't work (to my knowledge) is putting breakpoints in constructors (limitation of gdb).
I had this problem too, but with breakpoints in the cpp files and i also had problems with the debugger starting the wrong build target.
About the constructor thing I am not sure, it may either that either the model was changed in gcc 4.x or the more recent gdb contains a kind of workaround.no idea if gcc4.x or latest gdb, but it does work for some time now : breakpoints in the constructor
The reason why breakpoints on constructors do/did not work is that gcc 3.x always emits two separate constructors, and gdb can't figure out which one to break in. So it is kind of normal, rather than a bug.
If this works for you now, then that's good news (and a sign that I should soon update my compiler/debugger). :)
someone have an idea to locate/fix the bug ?Did you foget to re-compile your project after you have moved the header files?!