forked from qt-creator/qt-creator
Debugger: prefer cdb for msvc targets
Change-Id: I4d305ae6f3b54d7f724f2cfbde6062663e3c0ad1 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -381,6 +381,11 @@ static DebuggerItem::MatchLevel matchSingle(const Abi &debuggerAbi, const Abi &t
|
|||||||
return DebuggerItem::DoesNotMatch;
|
return DebuggerItem::DoesNotMatch;
|
||||||
|
|
||||||
// We have at least 'Matches well' now. Mark the combinations we really like.
|
// We have at least 'Matches well' now. Mark the combinations we really like.
|
||||||
|
if (HostOsInfo::isWindowsHost() && engineType == CdbEngineType
|
||||||
|
&& targetAbi.osFlavor() >= Abi::WindowsMsvc2005Flavor
|
||||||
|
&& targetAbi.osFlavor() <= Abi::WindowsLastMsvcFlavor) {
|
||||||
|
return DebuggerItem::MatchesPerfectly;
|
||||||
|
}
|
||||||
if (HostOsInfo::isWindowsHost() && engineType == GdbEngineType && targetAbi.osFlavor() == Abi::WindowsMSysFlavor)
|
if (HostOsInfo::isWindowsHost() && engineType == GdbEngineType && targetAbi.osFlavor() == Abi::WindowsMSysFlavor)
|
||||||
return DebuggerItem::MatchesPerfectly;
|
return DebuggerItem::MatchesPerfectly;
|
||||||
if (HostOsInfo::isLinuxHost() && engineType == GdbEngineType && targetAbi.os() == Abi::LinuxOS)
|
if (HostOsInfo::isLinuxHost() && engineType == GdbEngineType && targetAbi.os() == Abi::LinuxOS)
|
||||||
|
|||||||
@@ -97,6 +97,7 @@ public:
|
|||||||
WindowsMsvc2015Flavor,
|
WindowsMsvc2015Flavor,
|
||||||
WindowsMsvc2017Flavor,
|
WindowsMsvc2017Flavor,
|
||||||
WindowsMsvc2019Flavor,
|
WindowsMsvc2019Flavor,
|
||||||
|
WindowsLastMsvcFlavor = WindowsMsvc2019Flavor,
|
||||||
WindowsMSysFlavor,
|
WindowsMSysFlavor,
|
||||||
WindowsCEFlavor,
|
WindowsCEFlavor,
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user