Gdb stopped unexpectedly

I wrote the code in Qt 5.0, but when I try to debug it, a window appears with the error message: "GDB process terminated unexpectedly (code 0)" along with an empty console output window. I searched it on google, got some answers, such as unchecking the terminal, etc., but they did not work. Can anyone suggest me something about this?

Debug log:

THE FOLLOWING COMMAND CHECKS AVAILABLE FEATURES. AN ERROR IS EXPECTED. <134-interpreter-exec console "disassemble 0 0" dEXAMINING D:/projects_qt/build-contractfile-gdb-Debug/debug/contractfile dELF SECTIONS: dNO SECTION HEADERS FOUND. IS THIS AN EXECUTABLE? sSetting up inferior... <135set substitute-path C:/iwmake/build_mingw_opensource D:/QtInstall/5.0.2/Src <136set substitute-path C:/ndk_buildrepos/qt-desktop/src D:/QtInstall/5.0.2/Src <137set substitute-path Q:/qt5_workdir/w/s D:/QtInstall/5.0.2/Src <138-interpreter-exec console "set auto-solib-add on" <139-interpreter-exec console "python print 43" <140-interpreter-exec console "pwd" dGDB PROCESS FINISHED, status 0, code 0 dNOTE: ENGINE ILL ****** dState changed from EngineSetupRequested(1) to EngineShutdownRequested(20) [master] dQUEUE: SHUTDOWN ENGINE dCALL: SHUTDOWN ENGINE dINITIATE GDBENGINE SHUTDOWN IN STATE 1, PROC: 0 dNOTE: ENGINE SHUTDOWN OK dState changed from EngineShutdownRequested(20) to EngineShutdownOk(22) [master] dState changed from EngineShutdownOk(22) to DebuggerFinished(23) [master] dQUEUE: FINISH DEBUGGER dNOTE: FINISH DEBUGGER dHANDLE RUNCONTROL FINISHED sDebugger finished. 
+4
source share

Source: https://habr.com/ru/post/1494897/


All Articles