Debugger: Expand target mapping only when required

Store the unexpanded string in settings and expand on execution.

Change-Id: Ib3160a548b7501b22d120629a6376e2252df32e5
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Orgad Shaneh
2019-03-31 15:33:46 +03:00
committed by Orgad Shaneh
parent 04f8c0946f
commit 2df4667620
4 changed files with 5 additions and 5 deletions

View File

@@ -263,7 +263,8 @@ void LldbEngine::setupEngine()
for (auto it = sourcePathMap.constBegin(), cend = sourcePathMap.constEnd();
it != cend;
++it) {
executeDebuggerCommand("settings append target.source-map " + it.key() + ' ' + it.value());
executeDebuggerCommand(
"settings append target.source-map " + it.key() + ' ' + expand(it.value()));
}
DebuggerCommand cmd2("setupInferior");