LLDB
mainline
llvm-project
lldb
include
lldb
Interpreter
OptionGroupArchitecture.h
Go to the documentation of this file.
1
//===-- OptionGroupArchitecture.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_INTERPRETER_OPTIONGROUPARCHITECTURE_H
10
#define LLDB_INTERPRETER_OPTIONGROUPARCHITECTURE_H
11
12
#include "
lldb/Interpreter/Options.h
"
13
#include "
lldb/Utility/ArchSpec.h
"
14
15
namespace
lldb_private
{
16
17
// OptionGroupArchitecture
18
19
class
OptionGroupArchitecture
:
public
OptionGroup
{
20
public
:
21
OptionGroupArchitecture
() =
default
;
22
23
~OptionGroupArchitecture
()
override
=
default
;
24
25
llvm::ArrayRef<OptionDefinition>
GetDefinitions
()
override
;
26
27
Status
SetOptionValue
(uint32_t option_idx, llvm::StringRef option_value,
28
ExecutionContext
*execution_context)
override
;
29
30
void
OptionParsingStarting
(
ExecutionContext
*execution_context)
override
;
31
32
bool
GetArchitecture
(
Platform
*platform,
ArchSpec
&arch);
33
34
bool
ArchitectureWasSpecified
()
const
{
return
!
m_arch_str
.empty(); }
35
36
llvm::StringRef
GetArchitectureName
()
const
{
return
m_arch_str
; }
37
38
protected
:
39
std::string
m_arch_str
;
// Save the arch triple in case a platform is
40
// specified after the architecture
41
};
42
43
}
// namespace lldb_private
44
45
#endif
// LLDB_INTERPRETER_OPTIONGROUPARCHITECTURE_H
ArchSpec.h
Options.h
lldb_private::ArchSpec
An architecture specification class.
Definition:
ArchSpec.h:31
lldb_private::ExecutionContext
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
Definition:
ExecutionContext.h:292
lldb_private::OptionGroupArchitecture
Definition:
OptionGroupArchitecture.h:19
lldb_private::OptionGroupArchitecture::OptionGroupArchitecture
OptionGroupArchitecture()=default
lldb_private::OptionGroupArchitecture::ArchitectureWasSpecified
bool ArchitectureWasSpecified() const
Definition:
OptionGroupArchitecture.h:34
lldb_private::OptionGroupArchitecture::SetOptionValue
Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_value, ExecutionContext *execution_context) override
Definition:
OptionGroupArchitecture.cpp:33
lldb_private::OptionGroupArchitecture::GetArchitectureName
llvm::StringRef GetArchitectureName() const
Definition:
OptionGroupArchitecture.h:36
lldb_private::OptionGroupArchitecture::OptionParsingStarting
void OptionParsingStarting(ExecutionContext *execution_context) override
Definition:
OptionGroupArchitecture.cpp:51
lldb_private::OptionGroupArchitecture::GetArchitecture
bool GetArchitecture(Platform *platform, ArchSpec &arch)
Definition:
OptionGroupArchitecture.cpp:26
lldb_private::OptionGroupArchitecture::~OptionGroupArchitecture
~OptionGroupArchitecture() override=default
lldb_private::OptionGroupArchitecture::GetDefinitions
llvm::ArrayRef< OptionDefinition > GetDefinitions() override
Definition:
OptionGroupArchitecture.cpp:22
lldb_private::OptionGroupArchitecture::m_arch_str
std::string m_arch_str
Definition:
OptionGroupArchitecture.h:39
lldb_private::OptionGroup
Definition:
Options.h:234
lldb_private::Platform
A plug-in interface definition class for debug platform that includes many platform abilities such as...
Definition:
Platform.h:76
lldb_private::Status
An error handling class.
Definition:
Status.h:115
lldb_private
A class that represents a running process on the host machine.
Definition:
SBAddressRange.h:14
Generated on Mon Dec 23 2024 09:44:03 for LLDB by
1.9.6