Ok, i can confirm. With gdb 8.3 everything works...
I use the gdb from msys2 package...
I'm probably going to sound like a total newbie because I am, but how would I go about updating the gdb my codeblocks uses? it all self installed via a bundled setup file for me.
You download the compiler and gdb you want and set up codeblocks paths...
for example if you want to use msys2 (cool because it has a package manager):
!WARNING! This will overwrite your compiler settings, and you will have to recompile everything you want to use in codeblocks
(sadly satha has not updated his wiki page ;( https://github.com/stahta01/MSys2_CodeBlocks_Projects/wiki/Setup-CodeBlocks-to-use-MSys2-MinGW-GCC )
1) Download msys2 and install it
2) Install the mingw compiler with pacman (as described by the link above)
3) Install gdb with pachman (google for it, you will need pacman later )
4) Point the codeblocks compiler to it:
4.1) Settings->Compiler->Select "GNU GCC" from the drop down->Toolchain executables->Compilers installation directory
for me this is
4.2) The Program files should be somehting like this:
C-Compiler: x86_64-w64-mingw32-gcc.exe
C++ Compiler: x86_64-w64-mingw32-g++.exe
...
This files should be found int the top given folder 4.3) Hit ok
5) Setup the debugger
5.1) Settings -> Debugger->Default->Executable path->
C:\msys64\mingw64\bin\gdb
6) Rebuild everything
7) Have fun