GDB: Expand macros on substitute paths

Change-Id: Ifb7a7f007a7c46045d7c315c02c8309f0a599dbc
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Orgad Shaneh
2021-10-14 09:05:38 +03:00
committed by Orgad Shaneh
parent dafc32d8e2
commit 52f9db1ae0

View File

@@ -3799,7 +3799,7 @@ static SourcePathMap mergeStartParametersSourcePathMap(const DebuggerRunParamete
for (auto it = in.constBegin(), end = in.constEnd(); it != end; ++it) {
// Entries that start with parenthesis are handled in CppDebuggerEngine::validateRunParameters
if (!it.key().startsWith('('))
rc.insert(it.key(), it.value());
rc.insert(it.key(), sp.macroExpander->expand(it.value()));
}
return rc;
}