summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/CommandObjectScript.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-04-26 22:43:16 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-04-26 22:43:16 +0000
commit2b29b432d206ee706538b8dad54806d7649fb378 (patch)
treec1c288a9ee56edb568e0f4eb8925b5215ee50c97 /lldb/source/Interpreter/CommandObjectScript.cpp
parent3bf116c1a4f88d6e3f3fd0887453dea3569e0823 (diff)
downloadbcm5719-llvm-2b29b432d206ee706538b8dad54806d7649fb378.tar.gz
bcm5719-llvm-2b29b432d206ee706538b8dad54806d7649fb378.zip
[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
Diffstat (limited to 'lldb/source/Interpreter/CommandObjectScript.cpp')
-rw-r--r--lldb/source/Interpreter/CommandObjectScript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/CommandObjectScript.cpp b/lldb/source/Interpreter/CommandObjectScript.cpp
index 758dddcb52d..edb1f67e7b3 100644
--- a/lldb/source/Interpreter/CommandObjectScript.cpp
+++ b/lldb/source/Interpreter/CommandObjectScript.cpp
@@ -50,7 +50,7 @@ bool CommandObjectScript::DoExecute(llvm::StringRef command,
return false;
}
- ScriptInterpreter *script_interpreter = m_interpreter.GetScriptInterpreter();
+ ScriptInterpreter *script_interpreter = GetDebugger().GetScriptInterpreter();
if (script_interpreter == nullptr) {
result.AppendError("no script interpreter");
OpenPOWER on IntegriCloud