forked from qt-creator/qt-creator
Debugger: Set a QTC_DEBUGGER_PROCESS environment variable
It can then be queried in debugger python scripts to detect that the debugger process was launched by Qt Creator. Task-number: QTCREATORBUG-31769 Change-Id: I7d46ff8bb0312be98ff3cdd5bab9c97e4de6164b Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -752,6 +752,10 @@ bool DebuggerRunTool::fixupParameters()
|
||||
if (rp.symbolFile.isEmpty())
|
||||
rp.symbolFile = rp.inferior.command.executable();
|
||||
|
||||
// Set a Qt Creator-specific environment variable, to able to check for it in debugger
|
||||
// scripts.
|
||||
rp.debugger.environment.set("QTC_DEBUGGER_PROCESS", "1");
|
||||
|
||||
// Copy over DYLD_IMAGE_SUFFIX etc
|
||||
for (const auto &var :
|
||||
QStringList({"DYLD_IMAGE_SUFFIX", "DYLD_LIBRARY_PATH", "DYLD_FRAMEWORK_PATH"}))
|
||||
|
Reference in New Issue
Block a user