LLDB  mainline
CommandObjectScript.h
Go to the documentation of this file.
1 //===-- CommandObjectScript.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 LLDB_SOURCE_INTERPRETER_COMMANDOBJECTSCRIPT_H
10 #define LLDB_SOURCE_INTERPRETER_COMMANDOBJECTSCRIPT_H
11 
13 
14 namespace lldb_private {
15 
17 public:
19  ~CommandObjectScript() override;
20  Options *GetOptions() override { return &m_options; }
21 
22  class CommandOptions : public Options {
23  public:
25  ~CommandOptions() override = default;
26  Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_arg,
27  ExecutionContext *execution_context) override;
28  void OptionParsingStarting(ExecutionContext *execution_context) override;
29  llvm::ArrayRef<OptionDefinition> GetDefinitions() override;
31  };
32 
33 protected:
34  bool DoExecute(llvm::StringRef command, CommandReturnObject &result) override;
35 
36 private:
38 };
39 
40 } // namespace lldb_private
41 
42 #endif // LLDB_SOURCE_INTERPRETER_COMMANDOBJECTSCRIPT_H
lldb_private::ExecutionContext
Definition: ExecutionContext.h:291
lldb::ScriptLanguage
ScriptLanguage
Script interpreter types.
Definition: lldb-enumerations.h:216
lldb_private::CommandObjectScript::GetOptions
Options * GetOptions() override
Definition: CommandObjectScript.h:20
lldb_private::CommandObjectScript::CommandOptions::language
lldb::ScriptLanguage language
Definition: CommandObjectScript.h:30
lldb_private::CommandObjectScript::DoExecute
bool DoExecute(llvm::StringRef command, CommandReturnObject &result) override
Definition: CommandObjectScript.cpp:89
lldb_private::CommandObjectScript
Definition: CommandObjectScript.h:16
lldb_private::CommandObjectScript::m_options
CommandOptions m_options
Definition: CommandObjectScript.h:37
lldb_private::CommandObjectScript::CommandOptions::SetOptionValue
Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_arg, ExecutionContext *execution_context) override
Set the value of an option.
Definition: CommandObjectScript.cpp:48
lldb::eScriptLanguageNone
@ eScriptLanguageNone
Definition: lldb-enumerations.h:217
lldb_private::CommandObjectScript::~CommandObjectScript
~CommandObjectScript() override
Definition: CommandObjectScript.cpp:87
lldb_private::Options
Definition: Options.h:57
lldb_private::CommandObjectScript::CommandOptions::OptionParsingStarting
void OptionParsingStarting(ExecutionContext *execution_context) override
Definition: CommandObjectScript.cpp:70
lldb_private::CommandObjectScript::CommandObjectScript
CommandObjectScript(CommandInterpreter &interpreter)
Definition: CommandObjectScript.cpp:80
lldb_private::CommandInterpreter
Definition: CommandInterpreter.h:221
lldb_private::CommandObjectScript::CommandOptions::GetDefinitions
llvm::ArrayRef< OptionDefinition > GetDefinitions() override
Definition: CommandObjectScript.cpp:76
lldb_private::CommandObjectRaw
Definition: CommandObject.h:395
lldb_private::Status
Definition: Status.h:44
lldb_private::CommandReturnObject
Definition: CommandReturnObject.h:25
uint32_t
CommandObject.h
lldb_private::CommandObjectScript::CommandOptions::CommandOptions
CommandOptions()
Definition: CommandObjectScript.h:24
lldb_private::CommandObjectScript::CommandOptions
Definition: CommandObjectScript.h:22
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
lldb_private::CommandObjectScript::CommandOptions::~CommandOptions
~CommandOptions() override=default