diff options
| author | Jim Ingham <jingham@apple.com> | 2012-12-08 02:02:04 +0000 |
|---|---|---|
| committer | Jim Ingham <jingham@apple.com> | 2012-12-08 02:02:04 +0000 |
| commit | 5320624dfd71cfcf0dafffed6cb6c7921fc745bf (patch) | |
| tree | b47cf3feafe642cf89364354a7e793eadfcab8a8 | |
| parent | 593f993a68550aff3b668c97a62447ee146d509b (diff) | |
| download | bcm5719-llvm-5320624dfd71cfcf0dafffed6cb6c7921fc745bf.tar.gz bcm5719-llvm-5320624dfd71cfcf0dafffed6cb6c7921fc745bf.zip | |
Even when we aren’t going to init all the lldb.frame, etc, globals, init lldb.debugger, since each script interpreter is tied to just one debugger.
llvm-svn: 169663
| -rw-r--r-- | lldb/source/Interpreter/ScriptInterpreterPython.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/source/Interpreter/ScriptInterpreterPython.cpp b/lldb/source/Interpreter/ScriptInterpreterPython.cpp index b038e3332e7..a94f8709a41 100644 --- a/lldb/source/Interpreter/ScriptInterpreterPython.cpp +++ b/lldb/source/Interpreter/ScriptInterpreterPython.cpp @@ -624,6 +624,13 @@ ScriptInterpreterPython::EnterSession (bool init_lldb_globals) run_string.PutCString ("; lldb.frame = lldb.thread.GetSelectedFrame ()"); run_string.PutCString ("')"); } + else + { + // If we aren't initing the globals, we should still always set the debugger (since that is always unique.) + run_string.Printf ( "run_one_line (%s, \"lldb.debugger_unique_id = %" PRIu64, m_dictionary_name.c_str(), GetCommandInterpreter().GetDebugger().GetID()); + run_string.Printf ( "; lldb.debugger = lldb.SBDebugger.FindDebuggerWithID (%" PRIu64 ")", GetCommandInterpreter().GetDebugger().GetID()); + run_string.PutCString ("\")"); + } PyRun_SimpleString (run_string.GetData()); run_string.Clear(); |

