forked from qt-creator/qt-creator
Utils::Environment: Use expanded values
The Environment class is supposed to support values with references to other variables, but we failed to actually expand them in most places. Fixes: QTCREATORBUG-22687 Change-Id: I108cb59d3b4571471423455240f6f4f1cf64bf05 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -395,10 +395,10 @@ void CdbEngine::setupEngine()
|
||||
debugger.addArgs({"-srcpath", sourcePaths.join(';')});
|
||||
|
||||
QStringList symbolPaths = stringListSetting(CdbSymbolPaths);
|
||||
QString symbolPath = sp.inferior.environment.value("_NT_ALT_SYMBOL_PATH");
|
||||
QString symbolPath = sp.inferior.environment.expandedValueForKey("_NT_ALT_SYMBOL_PATH");
|
||||
if (!symbolPath.isEmpty())
|
||||
symbolPaths += symbolPath;
|
||||
symbolPath = sp.inferior.environment.value("_NT_SYMBOL_PATH");
|
||||
symbolPath = sp.inferior.environment.expandedValueForKey("_NT_SYMBOL_PATH");
|
||||
if (!symbolPath.isEmpty())
|
||||
symbolPaths += symbolPath;
|
||||
debugger.addArgs({"-y", symbolPaths.join(';')});
|
||||
|
||||
Reference in New Issue
Block a user