3

我已经在 Qt 5.0 上编写了一个代码,但是当我尝试调试它时,会出现一个错误消息窗口,上面写着“GDB 进程意外终止(代码 0)”以及空白的控制台输出窗口。我在谷歌上搜索了它,得到了一些答案,比如取消选中运行终端等,但它们没有用。谁能给我一些建议?

调试器日志:

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

0 回答 0