Also note that I added the postfix "-not_cygwin"
This GDB was configured as "x86_64-w64-mingw32-not_cygwin".
so that lazarus correctly understand the encoding, if not necessary, it can be removed and detected only by the line "GNU gdb unicode".
Ah, I did not spot that. But yes that may better be removed.
Lazarus looks for cygwin in the configured part. It probably does no harm, but it can cause extra work.
Cygwin mangles returned path names, and Lazarus activates code to demangle them.
Lazarus just tests if it sees cygwin, it does not check for the "not" part.
We could use the "unicode" there, but really its not a config issue.