mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-27 15:14:31 +00:00
Don't flatten lldb and import everything into the global namespace. Instead,
set the debugger_unique_id with the lldb prefix. llvm-svn: 113589
This commit is contained in:
1 parent
638a098f72
commit
d0211cc657
1 file changed
+2
-2
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user