1 //===-- CommandObjectScript.h -----------------------------------*- C++ -*-===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 #ifndef liblldb_CommandObjectScript_h_ 11 #define liblldb_CommandObjectScript_h_ 12 13 #include "lldb/Interpreter/CommandObject.h" 14 15 namespace lldb_private { 16 17 //------------------------------------------------------------------------- 18 // CommandObjectScript 19 //------------------------------------------------------------------------- 20 21 class CommandObjectScript : public CommandObjectRaw { 22 public: 23 CommandObjectScript(CommandInterpreter &interpreter, 24 lldb::ScriptLanguage script_lang); 25 26 ~CommandObjectScript() override; 27 28 protected: 29 bool DoExecute(llvm::StringRef command, CommandReturnObject &result) override; 30 }; 31 32 } // namespace lldb_private 33 34 #endif // liblldb_CommandObjectScript_h_ 35