blob: ca453a8754940923903622ec5d28fb27ecd70f4e [file] [log] [blame]
Chris Lattner30fdc8d2010-06-08 16:52:24 +00001//===-- 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
Chris Lattner30fdc8d2010-06-08 16:52:24 +000013#include "lldb/Interpreter/CommandObject.h"
14
15namespace lldb_private {
16
17//-------------------------------------------------------------------------
18// CommandObjectScript
19//-------------------------------------------------------------------------
20
Kate Stoneb9c1b512016-09-06 20:57:50 +000021class CommandObjectScript : public CommandObjectRaw {
Chris Lattner30fdc8d2010-06-08 16:52:24 +000022public:
Kate Stoneb9c1b512016-09-06 20:57:50 +000023 CommandObjectScript(CommandInterpreter &interpreter,
24 lldb::ScriptLanguage script_lang);
Chris Lattner30fdc8d2010-06-08 16:52:24 +000025
Kate Stoneb9c1b512016-09-06 20:57:50 +000026 ~CommandObjectScript() override;
Chris Lattner30fdc8d2010-06-08 16:52:24 +000027
Jim Ingham5a988412012-06-08 21:56:10 +000028protected:
Raphael Isemann4d51a902018-07-12 22:28:52 +000029 bool DoExecute(llvm::StringRef command, CommandReturnObject &result) override;
Chris Lattner30fdc8d2010-06-08 16:52:24 +000030};
31
32} // namespace lldb_private
33
Eugene Zelenko315b6882015-10-26 17:00:13 +000034#endif // liblldb_CommandObjectScript_h_