forked from qt-creator/qt-creator
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:
committed by
Orgad Shaneh
parent
04f8c0946f
commit
2df4667620
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user