blob: 7a61b06e5b04b0569af4a2ef80035f7c02dea1df [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
13// C Includes
14// C++ Includes
15// Other libraries and framework includes
16// Project includes
17#include "lldb/Interpreter/CommandObject.h"
18
19namespace lldb_private {
20
21//-------------------------------------------------------------------------
22// CommandObjectScript
23//-------------------------------------------------------------------------
24
Kate Stoneb9c1b512016-09-06 20:57:50 +000025class CommandObjectScript : public CommandObjectRaw {
Chris Lattner30fdc8d2010-06-08 16:52:24 +000026public:
Kate Stoneb9c1b512016-09-06 20:57:50 +000027 CommandObjectScript(CommandInterpreter &interpreter,
28 lldb::ScriptLanguage script_lang);
Chris Lattner30fdc8d2010-06-08 16:52:24 +000029
Kate Stoneb9c1b512016-09-06 20:57:50 +000030 ~CommandObjectScript() override;
Chris Lattner30fdc8d2010-06-08 16:52:24 +000031
Jim Ingham5a988412012-06-08 21:56:10 +000032protected:
Raphael Isemann4d51a902018-07-12 22:28:52 +000033 bool DoExecute(llvm::StringRef command, CommandReturnObject &result) override;
Chris Lattner30fdc8d2010-06-08 16:52:24 +000034};
35
36} // namespace lldb_private
37
Eugene Zelenko315b6882015-10-26 17:00:13 +000038#endif // liblldb_CommandObjectScript_h_