Debugger: Use MacroExpander from RunControl instead from Kit

Kit is just a subset.

Change-Id: I9ddfbfeaa5eadaa2e9a1d9a4a3409c6cf8a9658e
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
hjk
2021-10-07 16:58:25 +02:00
parent dfb5ab475e
commit e78f456083
2 changed files with 2 additions and 2 deletions

View File

@@ -195,7 +195,7 @@ public:
bool isCppDebugging() const;
bool isNativeMixedDebugging() const;
Utils::MacroExpander *macroExpander = nullptr;
const Utils::MacroExpander *macroExpander = nullptr;
Utils::optional<int> exitCode = {};

View File

@@ -885,7 +885,7 @@ DebuggerRunTool::DebuggerRunTool(RunControl *runControl, AllowTerminal allowTerm
QTC_ASSERT(kit, return);
m_runParameters.sysRoot = SysRootKitAspect::sysRoot(kit);
m_runParameters.macroExpander = kit->macroExpander();
m_runParameters.macroExpander = runControl->macroExpander();
m_runParameters.debugger = DebuggerKitAspect::runnable(kit);
m_runParameters.cppEngineType = DebuggerKitAspect::engineType(kit);