Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
User forums
»
General (but related to Code::Blocks)
»
an annoying gcc bug which cause bad debugging experience is fixed in gcc trunk
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: an annoying gcc bug which cause bad debugging experience is fixed in gcc trunk (Read 6586 times)
ollydbg
Developer
Lives here!
Posts: 5918
OpenCV and Robotics
an annoying gcc bug which cause bad debugging experience is fixed in gcc trunk
«
on:
April 17, 2021, 12:18:38 pm »
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
When debugging, it will always jump back to the variable declaration, this is so bad, and now it is fixed.
I hope some GCC suite will have this fix soon.
Logged
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.
ollydbg
Developer
Lives here!
Posts: 5918
OpenCV and Robotics
Re: an annoying gcc bug which cause bad debugging experience is fixed in gcc trunk
«
Reply #1 on:
May 02, 2021, 09:31:14 am »
I found that there are some GCC suite which already have GCC 11. The msys2 project only have GCC 10.x version.
WinLibs - GCC+MinGW-w64 compiler for Windows
This did have GCC 11, but when I checked it, I found that its GDB don't have python support, so I can't run GDB pretty printer.
Finally, I find another one:
Guyutongxue/mingw-release: Guyutongxue personal builds of MinGW-w64
This has both GCC 11 and GDB with python support.
I'm going to use this compiler suite to build wx 3.1.5 and code::blocks from source, because jumping back to the variable definition is so annoying when debugging C++.
EDIT:
build wx 3.1.5 and C::B works OK with
Guyutongxue/mingw-release: Guyutongxue personal builds of MinGW-w64
compiler suite.
«
Last Edit: May 02, 2021, 12:46:47 pm by ollydbg
»
Logged
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
User forums
»
General (but related to Code::Blocks)
»
an annoying gcc bug which cause bad debugging experience is fixed in gcc trunk