Debugger: Use kit macro expander instead of global one where possible

This is low hanging fruit enabling a lot more customization.

Change-Id: I1a90fa731ea512852c12a55fad75551efb44e875
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
hjk
2016-03-22 10:47:03 +01:00
parent 3c2f0096ea
commit d27d51050c
6 changed files with 23 additions and 6 deletions

View File

@@ -399,6 +399,8 @@ void DebuggerRunControlCreator::enrich(const RunConfiguration *runConfig, const
return;
}
m_rp.macroExpander = m_kit->macroExpander();
if (m_runConfig) {
if (auto envAspect = m_runConfig->extraAspect<EnvironmentAspect>()) {
m_rp.inferior.environment = envAspect->environment(); // Correct.