forked from qt-creator/qt-creator
Debugger: Add kit's environment to the debug environment
QNX 7.1.0 requires some specific environment variables to be available to the debugger. These environment variables can be set in the kit, and then they will reach the debugger. Change-Id: I9debec8240a6369823cc2fcf882355ef7ca4aa28 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -345,6 +345,7 @@ Runnable DebuggerKitAspect::runnable(const Kit *kit)
|
|||||||
runnable.executable = item->command();
|
runnable.executable = item->command();
|
||||||
runnable.workingDirectory = item->workingDirectory().toString();
|
runnable.workingDirectory = item->workingDirectory().toString();
|
||||||
runnable.environment = Utils::Environment::systemEnvironment();
|
runnable.environment = Utils::Environment::systemEnvironment();
|
||||||
|
kit->addToEnvironment(runnable.environment);
|
||||||
runnable.environment.set("LC_NUMERIC", "C");
|
runnable.environment.set("LC_NUMERIC", "C");
|
||||||
}
|
}
|
||||||
return runnable;
|
return runnable;
|
||||||
|
Reference in New Issue
Block a user