Andrew Cottrell - 2022-04-09

Even worse the code does not append the exeExt before calling cbFindFileInPATH for windows, so it is even worse under windows as the GDB debugger calls it as follows:
return !result.empty() ? result : cbDetectDebuggerExecutable(wxT("gdb"));