简体   繁体   English

GDB无法启动

[英]GDB doesn't start

Today I have run QtCreator to make a simple console app and experienced a problem. 今天,我运行QtCreator制作了一个简单的控制台应用程序,并遇到了问题。 The project builds OK, then "Launching a Debugger" starts, but, unfortunately, doesn't finish. 项目构建成功,然后开始“启动调试器”,但是不幸的是,该操作没有完成。 I see console with cursor and the program is not running. 我看到带有光标的控制台,程序未运行。
Trying Helloworld sample - same result. 尝试Helloworld示例-相同的结果。 Trying helloworld sample in Code Blocks - same. 在代码块中尝试helloworld示例-相同。 I have even tried to compile through the command line ( g++ -g hworld.cpp -o hworld.exe ). 我什至尝试通过命令行( g++ -g hworld.cpp -o hworld.exe )进行编译。 Then gdb hworld.exe , run - the same. 然后gdb hworld.exerun -相同。 Nothing happens, just cursor blinks. 什么也没发生,只是光标闪烁。
I have already tried to reinstall all this staff (C::B, Qt, TDM-GCC) but it doesn't help. 我已经尝试过重新安装所有这些人员(C :: B,Qt,TDM-GCC),但没有帮助。
May be the reason is Oracle MySQL for Windows which I installed few days ago. 可能是几天前安装的Windows版Oracle MySQL的原因。 I used MySQL Installer 5.7.12, it installs a lot of different staff. 我使用了MySQL Installer 5.7.12,它安装了许多不同的人员。
I would appreciate help very much, because it's really a trouble and I don't know what to do. 非常感谢您的帮助,因为这确实很麻烦,我也不知道该怎么办。 I need both MySQL and C++ IDE. 我需要MySQL和C ++ IDE。

The reason is found, it was Avast Free Antivirus 2015. 找到原因,它是Avast Free Antivirus 2015。
It was surprising for me because I have been using this antivirus already for 2 months and never had problems. 对于我来说,这是令人惊讶的,因为我已经使用这种防病毒软件两个月了,而且从未出现过问题。 I'm really sure, Avast is the reason, because if I turn it off the problem vanishes. 我非常确定,Avast是原因,因为如果我将其关闭,问题将消失。 When I turn it on, the problem is here again. 当我打开它时,问题又来了。
I've upgraded to Avast Free Antivirus 2016, now everything's fine. 我已经升级到Avast Free Antivirus 2016,现在一切都很好。
Also, a good idea is to add the projects' directory to the antivirus exceptions. 另外,一个好主意是将项目的目录添加到防病毒例外中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM