From 336c161ae5c9c61d94d683b69d697694fc0bf2a3 Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 28 Oct 2011 10:12:01 +0200 Subject: [PATCH] debugger: cache getenv results Change-Id: If848c342baddfa9cd0bf47c793222f3bd0ed86e0 Reviewed-by: hjk --- src/plugins/debugger/gdb/pythongdbengine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/debugger/gdb/pythongdbengine.cpp b/src/plugins/debugger/gdb/pythongdbengine.cpp index 2fd247534a3..24abd720bc5 100644 --- a/src/plugins/debugger/gdb/pythongdbengine.cpp +++ b/src/plugins/debugger/gdb/pythongdbengine.cpp @@ -91,12 +91,13 @@ void GdbEngine::updateLocalsPython(const UpdateParameters ¶ms) 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,";