debugger: cache getenv results

Change-Id: If848c342baddfa9cd0bf47c793222f3bd0ed86e0
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2011-10-28 10:12:01 +02:00
committed by hjk
parent 6052639379
commit 336c161ae5

View File

@@ -91,12 +91,13 @@ void GdbEngine::updateLocalsPython(const UpdateParameters &params)
watchers += it.key() + "#watch." + QByteArray::number(it.value());
}
const static bool alwaysVerbose = !qgetenv("QTC_DEBUGGER_PYTHON_VERBOSE").isEmpty();
QByteArray options;
if (debuggerCore()->boolSetting(UseDebuggingHelpers))
options += "fancy,";
if (debuggerCore()->boolSetting(AutoDerefPointers))
options += "autoderef,";
if (!qgetenv("QTC_DEBUGGER_PYTHON_VERBOSE").isEmpty())
if (alwaysVerbose)
options += "pe,";
if (options.isEmpty())
options += "defaults,";