From 6b312ad54ce0f029a68b349dacb4720a2c76f60f Mon Sep 17 00:00:00 2001 From: Cristian Adam Date: Mon, 28 Aug 2023 16:23:16 +0200 Subject: [PATCH] Debugger: Speed up startup on Windows The Qt SDK would not write the "Version" tag in the xml file, but the supported ABI and engine type are set. Only retrigger the debugger detection only if the version, and the ABI and engine type are not set. Change-Id: Ib73b1809f9dc6a16fa1988ee0e40e4d8131c667e Reviewed-by: hjk --- src/plugins/debugger/debuggeritem.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/debugger/debuggeritem.cpp b/src/plugins/debugger/debuggeritem.cpp index 0a92525beb3..b95a40527ba 100644 --- a/src/plugins/debugger/debuggeritem.cpp +++ b/src/plugins/debugger/debuggeritem.cpp @@ -104,7 +104,10 @@ DebuggerItem::DebuggerItem(const Store &data) && m_abis[0].osFlavor() == Abi::UnknownFlavor && m_abis[0].binaryFormat() == Abi::UnknownFormat; - if (m_version.isEmpty() || mightBeAPreQnxSeparateOSQnxDebugger) + bool needsReinitialization = m_version.isEmpty() && m_abis.isEmpty() + && m_engineType == NoEngineType; + + if (needsReinitialization || mightBeAPreQnxSeparateOSQnxDebugger) reinitializeFromFile(); }