LLDB
mainline
llvm-project
lldb
include
lldb
Interpreter
OptionGroupMemoryTag.h
Go to the documentation of this file.
1
//===-- OptionGroupMemoryTag.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_OPTIONGROUPMEMORYTAG_H
10
#define LLDB_INTERPRETER_OPTIONGROUPMEMORYTAG_H
11
12
#include "
lldb/Interpreter/OptionValueBoolean.h
"
13
#include "
lldb/Interpreter/Options.h
"
14
15
namespace
lldb_private
{
16
17
class
OptionGroupMemoryTag
:
public
OptionGroup
{
18
public
:
19
OptionGroupMemoryTag
(
20
// Whether to note that --show-tags does not apply to binary output.
21
// "memory read" wants this but "memory find" does not.
22
bool
note_binary =
false
);
23
24
~OptionGroupMemoryTag
()
override
=
default
;
25
26
llvm::ArrayRef<OptionDefinition>
GetDefinitions
()
override
;
27
28
Status
SetOptionValue
(uint32_t option_idx, llvm::StringRef option_value,
29
ExecutionContext
*execution_context)
override
;
30
31
void
OptionParsingStarting
(
ExecutionContext
*execution_context)
override
;
32
33
bool
AnyOptionWasSet
()
const
{
return
m_show_tags
.
OptionWasSet
(); }
34
35
OptionValueBoolean
GetShowTags
() {
return
m_show_tags
; };
36
37
protected
:
38
OptionValueBoolean
m_show_tags
;
39
OptionDefinition
m_option_definition
;
40
};
41
42
}
// namespace lldb_private
43
44
#endif
// LLDB_INTERPRETER_OPTIONGROUPMEMORYTAG_H
OptionValueBoolean.h
Options.h
lldb_private::ExecutionContext
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
Definition:
ExecutionContext.h:292
lldb_private::OptionGroupMemoryTag
Definition:
OptionGroupMemoryTag.h:17
lldb_private::OptionGroupMemoryTag::m_option_definition
OptionDefinition m_option_definition
Definition:
OptionGroupMemoryTag.h:39
lldb_private::OptionGroupMemoryTag::m_show_tags
OptionValueBoolean m_show_tags
Definition:
OptionGroupMemoryTag.h:38
lldb_private::OptionGroupMemoryTag::OptionParsingStarting
void OptionParsingStarting(ExecutionContext *execution_context) override
Definition:
OptionGroupMemoryTag.cpp:57
lldb_private::OptionGroupMemoryTag::~OptionGroupMemoryTag
~OptionGroupMemoryTag() override=default
lldb_private::OptionGroupMemoryTag::GetShowTags
OptionValueBoolean GetShowTags()
Definition:
OptionGroupMemoryTag.h:35
lldb_private::OptionGroupMemoryTag::GetDefinitions
llvm::ArrayRef< OptionDefinition > GetDefinitions() override
Definition:
OptionGroupMemoryTag.cpp:34
lldb_private::OptionGroupMemoryTag::AnyOptionWasSet
bool AnyOptionWasSet() const
Definition:
OptionGroupMemoryTag.h:33
lldb_private::OptionGroupMemoryTag::SetOptionValue
Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_value, ExecutionContext *execution_context) override
Definition:
OptionGroupMemoryTag.cpp:39
lldb_private::OptionGroup
Definition:
Options.h:234
lldb_private::OptionValueBoolean
Definition:
OptionValueBoolean.h:16
lldb_private::OptionValue::OptionWasSet
bool OptionWasSet() const
Definition:
OptionValue.h:253
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
lldb_private::OptionDefinition
Definition:
OptionDefinition.h:20
Generated on Wed Nov 20 2024 18:14:35 for LLDB by
1.9.6