当我在Qt Creator中运行这个最小程序时,我遇到了错误“gdb进程崩溃”:
int main(int argc, char *argv[]) {
return 0;
}
这是gdb
日志:
ADAPTER SUCCESSFULLY STARTED
NOTE: ENGINE SETUP OK
State changed from EngineSetupRequested(1) to EngineSetupOk(3).
QUEUE: SETUP INFERIOR
State changed from EngineSetupOk(3) to InferiorSetupRequested(4).
QUEUE: SETUP INFERIOR
HANDLE GDB ERROR: The gdb process was ended forcefully
GDB PROCESS FINISHED, status 1, code -1073741701
NOTE: ENGINE ILL ******
State changed from InferiorSetupRequested(4) to EngineShutdownRequested(20).
QUEUE: SHUTDOWN ENGINE
CALL: SETUP INFERIOR
Setting up inferior...
CALL: SHUTDOWN ENGINE
PLAIN ADAPTER SHUTDOWN 20
INITIATE GDBENGINE SHUTDOWN IN STATE 4, PROC: 0
NOTE: ENGINE SHUTDOWN OK
State changed from EngineShutdownRequested(20) to EngineShutdownOk(22).
State changed from EngineShutdownOk(22) to DebuggerFinished(23).
QUEUE: FINISH DEBUGGER
NOTE: FINISH DEBUGGER
HANDLE RUNCONTROL FINISHED
Debugger finished.
我在 i686-pc-mingw32 配置中使用gdb 6.8。我该如何解决这个问题?
答案 0 :(得分:1)
原来这是由python27.dll
中QtSDK\pythongdb\python_2.7based
的不兼容版本引起的。我更换了它,因为Secunia PSI一直在唠叨这个DLL已经过时且不安全。我恢复了旧的DLL,现在工作正常。