llvm-project/lldb/source/Plugins/ScriptInterpreter/Python
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
..
CMakeLists.txt [CMake] Move link dependencies where they are used. 2019-03-29 17:47:26 +00:00
PythonDataObjects.cpp Delete unnecessary copy ctors 2019-05-22 08:38:23 +00:00
PythonDataObjects.h Delete unnecessary copy ctors 2019-05-22 08:38:23 +00:00
PythonExceptionState.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
PythonExceptionState.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ScriptInterpreterPython.cpp [ScriptInterpreter] Initialize globals when loading a scripting module. 2019-09-17 03:55:58 +00:00
ScriptInterpreterPython.h [ScriptInterpreter] Pass the debugger instead of the command interpreter 2019-04-26 17:58:19 +00:00
ScriptInterpreterPythonImpl.h [Gardening] Remove dead code from ScriptInterpreterPython (NFC) 2019-08-06 04:45:59 +00:00
lldb-python.h [Python] Remove Python include from ScriptInterpreterPython.h 2019-03-29 20:17:20 +00:00