diff options
| author | Greg Clayton <gclayton@apple.com> | 2011-01-27 01:01:10 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2011-01-27 01:01:10 +0000 |
| commit | 645bf5420d9afc9dbcc9a59f45c48b3b15ca8a14 (patch) | |
| tree | 27ea45a7da6afe33ec02eda29c2d0149e71b4d40 /lldb/source/Interpreter/ScriptInterpreterPython.cpp | |
| parent | 582813596a1005bf1bba2b6630f78a197f2e019b (diff) | |
| download | bcm5719-llvm-645bf5420d9afc9dbcc9a59f45c48b3b15ca8a14.tar.gz bcm5719-llvm-645bf5420d9afc9dbcc9a59f45c48b3b15ca8a14.zip | |
Added support for some new environment variables within LLDB to enable some
extra launch options:
LLDB_LAUNCH_FLAG_DISABLE_ASLR disables ASLR for all launched processes
LLDB_LAUNCH_FLAG_DISABLE_STDIO will disable STDIO (reroute to "/dev/null")
for all launched processes
LLDB_LAUNCH_FLAG_LAUNCH_IN_TTY will force all launched processes to be
launched in new terminal windows.
Also, don't init python if we never create a script interpreter.
llvm-svn: 124341
Diffstat (limited to 'lldb/source/Interpreter/ScriptInterpreterPython.cpp')
| -rw-r--r-- | lldb/source/Interpreter/ScriptInterpreterPython.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/source/Interpreter/ScriptInterpreterPython.cpp b/lldb/source/Interpreter/ScriptInterpreterPython.cpp index 224ea7f6d37..368399b08e5 100644 --- a/lldb/source/Interpreter/ScriptInterpreterPython.cpp +++ b/lldb/source/Interpreter/ScriptInterpreterPython.cpp @@ -224,6 +224,14 @@ ScriptInterpreterPython::ScriptInterpreterPython (CommandInterpreter &interprete m_valid_session (true) { + static int g_initialized = false; + + if (!g_initialized) + { + g_initialized = true; + ScriptInterpreterPython::Initialize (); + } + bool safe_to_run = false; bool need_to_release_lock = true; int interval = 5; // Number of seconds to try getting the Python lock before timing out. |

