McuSupport: Use arm-none-eabi-gdb as a backup debugger

We normally use arm-none-eabi-gdb-py, but this doesn't come
with the new arm gcc version which ships with Qt for MCUs 2.8.0
To make sure the kit works, use this as a fallback.

Task-number: QTCREATORBUG-30699
Change-Id: I85c6c3ea1f7aae504e0aa1afb8a344d9bc3067d5
Reviewed-by: Kwangsub Kim <kwangsub.kim@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Sivert Krøvel
2024-05-31 13:41:43 +02:00
committed by Eike Ziller
parent 3be0b263a8
commit 0e80f63a1a

View File

@@ -569,6 +569,10 @@ QVariant McuToolchainPackage::debuggerId() const
switch (m_type) {
case ToolchainType::ArmGcc: {
sub = QString::fromLatin1("bin/arm-none-eabi-gdb-py");
const FilePath command = (path() / sub).withExecutableSuffix();
if (!command.exists()) {
sub = QString::fromLatin1("bin/arm-none-eabi-gdb");
}
displayName = Tr::tr("Arm GDB at %1");
engineType = Debugger::GdbEngineType;
break;