summaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2010-09-10 16:19:10 +0000
committerJohnny Chen <johnny.chen@apple.com>2010-09-10 16:19:10 +0000
commitd0211cc65763d6d4a0bd4e5090e99044e045b380 (patch)
treee685ab2f4b476d74a4823b98d2f07fcfebb2ff98 /lldb/source/Interpreter/ScriptInterpreterPython.cpp
parent638a098f72474bb1fc619b7c07e2cfef61f520f8 (diff)
Don't flatten lldb and import everything into the global namespace. Instead,
set the debugger_unique_id with the lldb prefix. llvm-svn: 113589
Diffstat (limited to 'lldb/source/Interpreter/ScriptInterpreterPython.cpp')
-rw-r--r--lldb/source/Interpreter/ScriptInterpreterPython.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Interpreter/ScriptInterpreterPython.cpp b/lldb/source/Interpreter/ScriptInterpreterPython.cpp
index 5006c9df8cf6..f39a0ad8b539 100644
--- a/lldb/source/Interpreter/ScriptInterpreterPython.cpp
+++ b/lldb/source/Interpreter/ScriptInterpreterPython.cpp
@@ -196,7 +196,7 @@ ScriptInterpreterPython::ScriptInterpreterPython (CommandInterpreter &interprete
if (success == 0)
{
// Import the Script Bridge module.
- success = PyRun_SimpleString ("from lldb import *");
+ success = PyRun_SimpleString ("import lldb");
}
const char *pty_slave_name = GetScriptInterpreterPtyName ();
@@ -241,7 +241,7 @@ ScriptInterpreterPython::ScriptInterpreterPython (CommandInterpreter &interprete
PyRun_SimpleString ("tcsetattr (new_stdin, TCSANOW, new_mode)");
run_string.Clear();
- run_string.Printf ("debugger_unique_id = %d", interpreter.GetDebugger().GetID());
+ run_string.Printf ("lldb.debugger_unique_id = %d", interpreter.GetDebugger().GetID());
PyRun_SimpleString (run_string.GetData());
}