Code::Blocks Forums
Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: ollydbg on November 05, 2013, 02:34:43 am
-
This is a really annoying debug experience when I debug C::B, the caret always jump back to some place and then go to the end of function end again when you step through lines (GDB next command).
I have reported in this post annoying debugging experience (http://forums.codeblocks.org/index.php/topic,15264.msg103631.html#msg103631)
This is a GCC bug Bug 49951 – [4.5/4.6/4.7 Regression] Debug stepping behavior regarding g++ Class destructor has changed for the worse starting at gcc 4.5.0 (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49951). It was fixed around 2011-12-20, but the bad news is that it happened in GCC 4.8.1/4.8.2 again. (4.8.0 is not tested)
GCC 4.7.3/4.6.4 does not have such regression, so for a good debug experience, I suggest using the latest stable release of GCC 4.6/4.7 when debugging C++ applications under C::B.
-
Since I can't post a new thread(forum database error), I reply to this old thread.
This annoying bug is fixed now!
See the link in the above post.
I hope some GCC suite will have this fix soon.