当我尝试从Qt Creator中调试我的Qt C ++应用程序时,它会与以下错误消息一致崩溃:
**An unhandled win32 exception in gdb.exe**
然而,当我尝试通过双击启动相同的二进制文件时,它运行得很好。 另外,我也可以从命令行运行我的二进制文件,就像这样
C:\Users\CoolCast>c:\MinGW4.4\bin\gdb.exe C:\QuiKast\git_apps_0_1\Server\MediaSt
reamServer-build-Desktop-Debug\debug\CoolCast.exe
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-mingw32"...
(gdb) run
Starting program: C:\QuiKast\git_apps_0_1\Server\MediaStreamServer-build-Desktop
-Debug\debug\CoolCast.exe
[New thread 2112.0x1224]
[New thread 2112.0x12c8]
[New thread 2112.0xc00]
[New thread 2112.0x1264]
[New thread 2112.0x150c]
... and so on.
我的环境和程序版本是:
Windows 7
Qt SDK 4.8.4
MinGw 4.4
GDB auto-detected under Mingw and set to C:\Mingw4.4\bin\gdb.exe
答案 0 :(得分:1)
更新较新版本的gdb gdb-windows。创作者至少想要版本7.2 IIRC。请检查类似的链接。 GDB crash in Qt Creator 2.5
答案 1 :(得分:0)
对我来说,切换到自动检测到的调试器是可行的。
我将c:\qtx64\mingw64\bin\g++.exe
用于调试器,但出现了相同或相似的错误:the gdb process terminated unexpectedly (code 1)
。然后,我进入我的MinGW 64位工具包(Tools->Options->Build & Run->Kits
),并单击Auto-detect
字段旁边的Debugger
按钮。这将调试器切换到c:\qtx64\mingw64\bin\gdb.exe
。重建我的项目(可能是必要的,也可能不是必需的),并从Qt Creator (Qt Creator 2.7.0;基于Qt 4.8.4(32位))中启动调试器,并对其进行破坏工作。