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

@@ -61,7 +61,6 @@
#include <app/app_version.h>
#include <utils/algorithm.h>
#include <utils/hostosinfo.h>
#include <utils/macroexpander.h>
#include <utils/qtcassert.h>
#include <utils/qtcprocess.h>
#include <utils/savedaction.h>
@@ -3651,7 +3650,7 @@ void GdbEngine::setupEngine()
for (auto it = completeSourcePathMap.constBegin(), cend = completeSourcePathMap.constEnd();
it != cend;
++it) {
runCommand({"set substitute-path " + it.key() + " " + it.value()});
runCommand({"set substitute-path " + it.key() + " " + expand(it.value())});
}
// Spaces just will not work.