LLDB
mainline
llvm-project
lldb
source
Commands
CommandOptionsProcessAttach.h
Go to the documentation of this file.
1
//===-- CommandOptionsProcessAttach.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_COMMANDS_COMMANDOPTIONSPROCESSATTACH_H
10
#define LLDB_SOURCE_COMMANDS_COMMANDOPTIONSPROCESSATTACH_H
11
12
#include "
lldb/Interpreter/Options.h
"
13
#include "
lldb/Target/Process.h
"
14
15
namespace
lldb_private
{
16
17
// CommandOptionsProcessAttach
18
19
class
CommandOptionsProcessAttach
:
public
lldb_private::OptionGroup
{
20
public
:
21
CommandOptionsProcessAttach
() {
22
// Keep default values of all options in one place: OptionParsingStarting
23
// ()
24
OptionParsingStarting
(
nullptr
);
25
}
26
27
~CommandOptionsProcessAttach
()
override
=
default
;
28
29
lldb_private::Status
30
SetOptionValue
(uint32_t option_idx, llvm::StringRef option_arg,
31
lldb_private::ExecutionContext
*execution_context)
override
;
32
33
void
OptionParsingStarting
(
34
lldb_private::ExecutionContext
*execution_context)
override
{
35
attach_info
.
Clear
();
36
}
37
38
llvm::ArrayRef<lldb_private::OptionDefinition>
GetDefinitions
()
override
;
39
40
// Instance variables to hold the values for command options.
41
42
lldb_private::ProcessAttachInfo
attach_info
;
43
};
// CommandOptionsProcessAttach
44
45
}
// namespace lldb_private
46
47
#endif
// LLDB_SOURCE_COMMANDS_COMMANDOPTIONSPROCESSATTACH_H
Options.h
Process.h
lldb_private::CommandOptionsProcessAttach
Definition:
CommandOptionsProcessAttach.h:19
lldb_private::CommandOptionsProcessAttach::GetDefinitions
llvm::ArrayRef< lldb_private::OptionDefinition > GetDefinitions() override
Definition:
CommandOptionsProcessAttach.cpp:74
lldb_private::CommandOptionsProcessAttach::CommandOptionsProcessAttach
CommandOptionsProcessAttach()
Definition:
CommandOptionsProcessAttach.h:21
lldb_private::CommandOptionsProcessAttach::~CommandOptionsProcessAttach
~CommandOptionsProcessAttach() override=default
lldb_private::CommandOptionsProcessAttach::attach_info
lldb_private::ProcessAttachInfo attach_info
Definition:
CommandOptionsProcessAttach.h:42
lldb_private::CommandOptionsProcessAttach::OptionParsingStarting
void OptionParsingStarting(lldb_private::ExecutionContext *execution_context) override
Definition:
CommandOptionsProcessAttach.h:33
lldb_private::CommandOptionsProcessAttach::SetOptionValue
lldb_private::Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_arg, lldb_private::ExecutionContext *execution_context) override
Definition:
CommandOptionsProcessAttach.cpp:31
lldb_private::ExecutionContext
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
Definition:
ExecutionContext.h:292
lldb_private::OptionGroup
Definition:
Options.h:234
lldb_private::ProcessAttachInfo
Definition:
Process.h:122
lldb_private::ProcessAttachInfo::Clear
void Clear()
Definition:
Process.h:164
lldb_private::Status
An error handling class.
Definition:
Status.h:44
lldb_private
A class that represents a running process on the host machine.
Definition:
SBAddressRange.h:14
Generated on Sun Oct 6 2024 00:13:09 for LLDB by
1.9.6