forked from qt-creator/qt-creator
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:
@@ -195,7 +195,7 @@ public:
|
|||||||
bool isCppDebugging() const;
|
bool isCppDebugging() const;
|
||||||
bool isNativeMixedDebugging() const;
|
bool isNativeMixedDebugging() const;
|
||||||
|
|
||||||
Utils::MacroExpander *macroExpander = nullptr;
|
const Utils::MacroExpander *macroExpander = nullptr;
|
||||||
|
|
||||||
Utils::optional<int> exitCode = {};
|
Utils::optional<int> exitCode = {};
|
||||||
|
|
||||||
|
@@ -885,7 +885,7 @@ DebuggerRunTool::DebuggerRunTool(RunControl *runControl, AllowTerminal allowTerm
|
|||||||
QTC_ASSERT(kit, return);
|
QTC_ASSERT(kit, return);
|
||||||
|
|
||||||
m_runParameters.sysRoot = SysRootKitAspect::sysRoot(kit);
|
m_runParameters.sysRoot = SysRootKitAspect::sysRoot(kit);
|
||||||
m_runParameters.macroExpander = kit->macroExpander();
|
m_runParameters.macroExpander = runControl->macroExpander();
|
||||||
m_runParameters.debugger = DebuggerKitAspect::runnable(kit);
|
m_runParameters.debugger = DebuggerKitAspect::runnable(kit);
|
||||||
m_runParameters.cppEngineType = DebuggerKitAspect::engineType(kit);
|
m_runParameters.cppEngineType = DebuggerKitAspect::engineType(kit);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user