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
14namespace lldb_private {
15
17public:
20 Options *GetOptions() override { return &m_options; }
21
22 class CommandOptions : public Options {
23 public:
24 CommandOptions() = default;
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
33protected:
34 void DoExecute(llvm::StringRef command, CommandReturnObject &result) override;
35
36private:
38};
39
40} // namespace lldb_private
41
42#endif // LLDB_SOURCE_INTERPRETER_COMMANDOBJECTSCRIPT_H
Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_arg, ExecutionContext *execution_context) override
Set the value of an option.
llvm::ArrayRef< OptionDefinition > GetDefinitions() override
void OptionParsingStarting(ExecutionContext *execution_context) override
void DoExecute(llvm::StringRef command, CommandReturnObject &result) override
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
A command line option parsing protocol class.
Definition: Options.h:58
An error handling class.
Definition: Status.h:44
A class that represents a running process on the host machine.
Definition: SBAttachInfo.h:14
ScriptLanguage
Script interpreter types.
@ eScriptLanguageNone