[ScriptInterpreter] Pass the debugger instead of the command interpreter
authorJonas Devlieghere <jonas@devlieghere.com>
Fri, 26 Apr 2019 17:58:19 +0000 (17:58 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Fri, 26 Apr 2019 17:58:19 +0000 (17:58 +0000)
commit8d1fb843274175022b21f348d69a91f3573e1514
tree6d19e3bd8e4609ecdac89b08db383d2624c3fe1e
parent1d30f0c93e7c30748d28bf3b916218bdd4124f20
[ScriptInterpreter] Pass the debugger instead of the command interpreter

As discussed in D61090, there's no good reason for the script
interpreter to depend on the command interpreter. When looking at the
code, it becomes clear that we mostly use the command interpreter as a
way to access the debugger. Hence, it makes more sense to just pass that
to the script interpreter directly.

This is part 1 out of 2. I have another patch in the pipeline that
changes the ownership of the script interpreter to the debugger as well,
but I didn't get around to finish that today.

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

llvm-svn: 359330
lldb/include/lldb/Core/PluginManager.h
lldb/include/lldb/Interpreter/ScriptInterpreter.h
lldb/include/lldb/lldb-private-interfaces.h
lldb/source/Core/PluginManager.cpp
lldb/source/Interpreter/CommandInterpreter.cpp
lldb/source/Interpreter/ScriptInterpreter.cpp
lldb/source/Plugins/ScriptInterpreter/None/ScriptInterpreterNone.cpp
lldb/source/Plugins/ScriptInterpreter/None/ScriptInterpreterNone.h
lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h
lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h