mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-27 15:14:31 +00:00
[ScriptInterpreter] Move ownership into debugger (NFC)
This is part two of the change started in r359330. This patch moves the ownership of the script interpreter from the command interpreter into the debugger. I would've preferred to remove the lazy initialization, however the fact that the scripting language is set after the debugger is created makes that tricky. So for now this does exactly the same thing as when it was under the command interpreter. The result is that this patch is fully NFC. Differential revision: https://reviews.llvm.org/D61211 llvm-svn: 359354
This commit is contained in:
1 parent
3bf116c1a4
commit
2b29b432d2
29 files changed
+76
-104
No files matched your search
@@ -60,7 +60,6 @@ void ThreadPlanPython::DidPush() {
|
||||
ScriptInterpreter *script_interp = m_thread.GetProcess()
|
||||
->GetTarget()
|
||||
.GetDebugger()
|
||||
.GetCommandInterpreter()
|
||||
.GetScriptInterpreter();
|
||||
if (script_interp) {
|
||||
m_implementation_sp = script_interp->CreateScriptedThreadPlan(
|
||||
@@ -80,7 +79,6 @@ bool ThreadPlanPython::ShouldStop(Event *event_ptr) {
|
||||
ScriptInterpreter *script_interp = m_thread.GetProcess()
|
||||
->GetTarget()
|
||||
.GetDebugger()
|
||||
.GetCommandInterpreter()
|
||||
.GetScriptInterpreter();
|
||||
if (script_interp) {
|
||||
bool script_error;
|
||||
@@ -104,7 +102,6 @@ bool ThreadPlanPython::IsPlanStale() {
|
||||
ScriptInterpreter *script_interp = m_thread.GetProcess()
|
||||
->GetTarget()
|
||||
.GetDebugger()
|
||||
.GetCommandInterpreter()
|
||||
.GetScriptInterpreter();
|
||||
if (script_interp) {
|
||||
bool script_error;
|
||||
@@ -128,7 +125,6 @@ bool ThreadPlanPython::DoPlanExplainsStop(Event *event_ptr) {
|
||||
ScriptInterpreter *script_interp = m_thread.GetProcess()
|
||||
->GetTarget()
|
||||
.GetDebugger()
|
||||
.GetCommandInterpreter()
|
||||
.GetScriptInterpreter();
|
||||
if (script_interp) {
|
||||
bool script_error;
|
||||
@@ -167,7 +163,6 @@ lldb::StateType ThreadPlanPython::GetPlanRunState() {
|
||||
ScriptInterpreter *script_interp = m_thread.GetProcess()
|
||||
->GetTarget()
|
||||
.GetDebugger()
|
||||
.GetCommandInterpreter()
|
||||
.GetScriptInterpreter();
|
||||
if (script_interp) {
|
||||
bool script_error;
|
||||
|
||||
Reference in new issue
Block a user