forked from qt-creator/qt-creator
GDB: Do not pass regular expressions to set substitute-path
Change-Id: If647e2d12b261ba2137c952640dfdb3a984fcfbf Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
cab210ad36
commit
dafc32d8e2
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user