GDB: Do not pass regular expressions to set substitute-path

Change-Id: If647e2d12b261ba2137c952640dfdb3a984fcfbf
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Orgad Shaneh
2021-10-14 09:02:26 +03:00
committed by Orgad Shaneh
parent cab210ad36
commit dafc32d8e2

View File

@@ -3796,8 +3796,11 @@ static SourcePathMap mergeStartParametersSourcePathMap(const DebuggerRunParamete
{
// Do not overwrite user settings.
SourcePathMap rc = sp.sourcePathMap;
for (auto it = in.constBegin(), end = in.constEnd(); it != end; ++it)
rc.insert(it.key(), it.value());
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());
}
return rc;
}