Don't flatten lldb and import everything into the global namespace. Instead,
set the debugger_unique_id with the lldb prefix.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@113589 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Interpreter/ScriptInterpreterPython.cpp b/source/Interpreter/ScriptInterpreterPython.cpp
index 5006c9d..f39a0ad 100644
--- a/source/Interpreter/ScriptInterpreterPython.cpp
+++ b/source/Interpreter/ScriptInterpreterPython.cpp
@@ -196,7 +196,7 @@
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 @@
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());
}