I don't want to blame msys2 developers to drop supporting win7, because they supply us so many useful library packages and compilers.
About the gdb, I use gdb Python pretty printer when debugging.
That is, in order to conveniently output data specifically for "c++" ("c" does not apply), you need python, is it impossible to write in "c++" a python script replacement for data output in codeblocks? Of course, "c++" can't help but create problems on the same place
Drags python, which in turn destroys support for XP, 7 and later 8, 10, etc. The best thing to do is to compile gdb without compiled python support (let python free-swim) and write programs in "c" and you will have no problems with supporting different versions of Windows starting with XP
We don't need crutches and dirty hacks.