Commit 4b2742e1 authored by hjk's avatar hjk

Debugger: Macro expander support for debugger version and ABI

Change-Id: Idd920feed7ae402a843a3854a8d2ab83b79b7076
Reviewed-by: default avatarLeena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
parent df3176d5
......@@ -306,13 +306,28 @@ void DebuggerKitInformation::addToMacroExpander(Kit *kit, MacroExpander *expande
expander->registerVariable("Debugger:Type", tr("Type of Debugger Backend"),
[this, kit]() -> QString {
const DebuggerItem *item = debugger(kit);
return item ? item->engineTypeName() : tr("unknown");
return item ? item->engineTypeName() : tr("Unknown debugger type");
});
// FIXME: Use better strings.
expander->registerVariable("Debugger:Name", tr("Debugger"),
[this, kit]() -> QString {
const DebuggerItem *item = debugger(kit);
return item ? item->displayName() : tr("unknown");
return item ? item->displayName() : tr("Unknown debugger");
});
expander->registerVariable("Debugger:Version", tr("Debugger"),
[this, kit]() -> QString {
const DebuggerItem *item = debugger(kit);
return item && !item->version().isEmpty()
? item->version() : tr("Unknown debugger version");
});
expander->registerVariable("Debugger:Abi", tr("Debugger"),
[this, kit]() -> QString {
const DebuggerItem *item = debugger(kit);
return item && !item->abis().isEmpty()
? item->abiNames().join(QLatin1Char(' '))
: tr("Unknown debugger ABI");
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment