llvm-project/lldb/source/Plugins/ScriptInterpreter
Jonas Devlieghere a879f40ba1 [ScriptInterpreter] Initialize globals when loading a scripting module.
The LoadScriptingModule used by command script import wasn't
initializing the LLDB global variables (things like `lldb.frame` and
`lldb.debugger`). They would get initialized however when running the
interactive script interpreter or running a single script line (e.g.
`script print(lldb.frame)`). This patch fixes that by properly
initializing the globals when loading a Python module.

Differential revision: https://reviews.llvm.org/D67644

llvm-svn: 372060
2019-09-17 03:55:58 +00:00
..
None [ScriptInterpreter] Pass the debugger instead of the command interpreter 2019-04-26 17:58:19 +00:00
Python [ScriptInterpreter] Initialize globals when loading a scripting module. 2019-09-17 03:55:58 +00:00
CMakeLists.txt ScriptInterpreterPython cleanup 2018-06-21 14:09:15 +00:00