1 //===-- ScriptInterpreterNone.h ---------------------------------*- C++ -*-===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 #ifndef liblldb_ScriptInterpreterNone_h_ 10 #define liblldb_ScriptInterpreterNone_h_ 11 12 #include "lldb/Interpreter/ScriptInterpreter.h" 13 14 namespace lldb_private { 15 16 class ScriptInterpreterNone : public ScriptInterpreter { 17 public: 18 ScriptInterpreterNone(CommandInterpreter &interpreter); 19 20 ~ScriptInterpreterNone() override; 21 22 bool ExecuteOneLine( 23 llvm::StringRef command, CommandReturnObject *result, 24 const ExecuteScriptOptions &options = ExecuteScriptOptions()) override; 25 26 void ExecuteInterpreterLoop() override; 27 28 //------------------------------------------------------------------ 29 // Static Functions 30 //------------------------------------------------------------------ 31 static void Initialize(); 32 33 static void Terminate(); 34 35 static lldb::ScriptInterpreterSP 36 CreateInstance(CommandInterpreter &interpreter); 37 38 static lldb_private::ConstString GetPluginNameStatic(); 39 40 static const char *GetPluginDescriptionStatic(); 41 42 //------------------------------------------------------------------ 43 // PluginInterface protocol 44 //------------------------------------------------------------------ 45 lldb_private::ConstString GetPluginName() override; 46 47 uint32_t GetPluginVersion() override; 48 }; 49 50 } // namespace lldb_private 51 52 #endif // liblldb_ScriptInterpreterNone_h_ 53