From 01d3b6971984e7cd66ec3cf2269174f344030b7d Mon Sep 17 00:00:00 2001 From: Cristian Adam Date: Thu, 16 Jun 2022 12:07:41 +0200 Subject: [PATCH] cdb: Use CtrlCStub for cdb.exe This makes sure that any processes started by the debugged project in cdb are also closed when the debugger should be stopped. It happened to me in the past that while debugging Qt Creator in Qt Creator and closing the debugging session tens of uic.exe were left as zombies. And for some reason they started consuming CPU time. taskkill /f /im uic.exe was the needed command to handle the situation. Change-Id: I498381e793405854f7c02e9fec6b6e4718c75c25 Reviewed-by: hjk Reviewed-by: --- src/plugins/debugger/cdb/cdbengine.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/debugger/cdb/cdbengine.cpp b/src/plugins/debugger/cdb/cdbengine.cpp index 33ef864dd12..6a959beba4e 100644 --- a/src/plugins/debugger/cdb/cdbengine.cpp +++ b/src/plugins/debugger/cdb/cdbengine.cpp @@ -185,6 +185,7 @@ CdbEngine::CdbEngine() : m_extensionCommandPrefix("!" QT_CREATOR_CDB_EXT ".") { m_process.setProcessMode(ProcessMode::Writer); + m_process.setUseCtrlCStub(true); setObjectName("CdbEngine"); setDebuggerName("CDB");