LLDB mainline
|
#include <OptionGroupFormat.h>
Public Member Functions | |
OptionGroupFormat (lldb::Format default_format, uint64_t default_byte_size=UINT64_MAX, uint64_t default_count=UINT64_MAX, OptionGroupFormatUsageTextVector usage_text_vector={}) | |
~OptionGroupFormat () override=default | |
llvm::ArrayRef< OptionDefinition > | GetDefinitions () override |
Status | SetOptionValue (uint32_t option_idx, llvm::StringRef option_value, ExecutionContext *execution_context) override |
void | OptionParsingStarting (ExecutionContext *execution_context) override |
lldb::Format | GetFormat () const |
OptionValueFormat & | GetFormatValue () |
const OptionValueFormat & | GetFormatValue () const |
OptionValueUInt64 & | GetByteSizeValue () |
const OptionValueUInt64 & | GetByteSizeValue () const |
OptionValueUInt64 & | GetCountValue () |
const OptionValueUInt64 & | GetCountValue () const |
bool | HasGDBFormat () const |
bool | AnyOptionWasSet () const |
Public Member Functions inherited from lldb_private::OptionGroup | |
OptionGroup ()=default | |
virtual | ~OptionGroup ()=default |
virtual llvm::ArrayRef< OptionDefinition > | GetDefinitions ()=0 |
virtual Status | SetOptionValue (uint32_t option_idx, llvm::StringRef option_value, ExecutionContext *execution_context)=0 |
virtual void | OptionParsingStarting (ExecutionContext *execution_context)=0 |
virtual Status | OptionParsingFinished (ExecutionContext *execution_context) |
Static Public Attributes | |
static const uint32_t | OPTION_GROUP_FORMAT = LLDB_OPT_SET_1 |
static const uint32_t | OPTION_GROUP_GDB_FMT = LLDB_OPT_SET_2 |
static const uint32_t | OPTION_GROUP_SIZE = LLDB_OPT_SET_3 |
static const uint32_t | OPTION_GROUP_COUNT = LLDB_OPT_SET_4 |
Protected Member Functions | |
bool | ParserGDBFormatLetter (ExecutionContext *execution_context, char format_letter, lldb::Format &format, uint32_t &byte_size) |
Protected Attributes | |
OptionValueFormat | m_format |
OptionValueUInt64 | m_byte_size |
OptionValueUInt64 | m_count |
char | m_prev_gdb_format |
char | m_prev_gdb_size |
bool | m_has_gdb_format |
OptionDefinition | m_option_definitions [4] |
Definition at line 24 of file OptionGroupFormat.h.
OptionGroupFormat::OptionGroupFormat | ( | lldb::Format | default_format, |
uint64_t | default_byte_size = UINT64_MAX , |
||
uint64_t | default_count = UINT64_MAX , |
||
OptionGroupFormatUsageTextVector | usage_text_vector = {} |
||
) |
Definition at line 34 of file OptionGroupFormat.cpp.
References lldb::eArgTypeByteSize, lldb::eArgTypeFormat, g_default_option_definitions, m_option_definitions, and lldb_private::OptionDefinition::usage_text.
|
overridedefault |
|
inline |
Definition at line 66 of file OptionGroupFormat.h.
References m_byte_size, m_count, m_format, and lldb_private::OptionValue::OptionWasSet().
Referenced by CommandObjectMemoryRead::DoExecute().
|
inline |
Definition at line 56 of file OptionGroupFormat.h.
References m_byte_size.
Referenced by CommandObjectMemoryRead::DoExecute(), CommandObjectMemoryWrite::DoExecute(), and OptionGroupReadMemory::FinalizeSettings().
|
inline |
Definition at line 58 of file OptionGroupFormat.h.
References m_byte_size.
|
inline |
Definition at line 60 of file OptionGroupFormat.h.
References m_count.
Referenced by CommandObjectMemoryRead::DoExecute(), and OptionGroupReadMemory::FinalizeSettings().
|
inline |
Definition at line 62 of file OptionGroupFormat.h.
References m_count.
|
overridevirtual |
Implements lldb_private::OptionGroup.
Definition at line 60 of file OptionGroupFormat.cpp.
References lldb_private::OptionValueUInt64::GetDefaultValue(), m_byte_size, m_count, m_option_definitions, and UINT64_MAX.
|
inline |
Definition at line 50 of file OptionGroupFormat.h.
References lldb_private::OptionValueFormat::GetCurrentValue(), and m_format.
Referenced by CommandObjectFrameVariable::DoExecute(), CommandObjectMemoryRead::DoExecute(), CommandObjectMemoryWrite::DoExecute(), lldb_private::CommandObjectDWIMPrint::DoExecute(), CommandObjectRegisterRead::DumpRegister(), CommandObjectTargetVariable::DumpValueObject(), OptionGroupReadMemory::FinalizeSettings(), and lldb_private::REPL::IOHandlerInputComplete().
|
inline |
Definition at line 52 of file OptionGroupFormat.h.
References m_format.
Referenced by CommandObjectMemoryRead::DoExecute(), and CommandObjectRegisterRead::DoExecute().
|
inline |
Definition at line 54 of file OptionGroupFormat.h.
References m_format.
|
inline |
Definition at line 64 of file OptionGroupFormat.h.
References m_has_gdb_format.
Referenced by CommandObjectMemoryRead::DoExecute().
|
overridevirtual |
Implements lldb_private::OptionGroup.
Definition at line 278 of file OptionGroupFormat.cpp.
References lldb_private::OptionValueFormat::Clear(), lldb_private::OptionValueUInt64::Clear(), m_byte_size, m_count, m_format, and m_has_gdb_format.
Referenced by lldb_private::REPL::REPL().
|
protected |
Definition at line 186 of file OptionGroupFormat.cpp.
References lldb::eFormatAddressInfo, lldb::eFormatBinary, lldb::eFormatChar, lldb::eFormatCString, lldb::eFormatDecimal, lldb::eFormatFloat, lldb::eFormatHex, lldb::eFormatHexFloat, lldb::eFormatInstruction, lldb::eFormatOctal, lldb::eFormatOSType, lldb::eFormatUnsigned, lldb_private::ExecutionContext::GetTargetSP(), m_has_gdb_format, m_prev_gdb_format, and m_prev_gdb_size.
Referenced by SetOptionValue().
|
overridevirtual |
Implements lldb_private::OptionGroup.
Definition at line 71 of file OptionGroupFormat.cpp.
References lldb::eFormatAddressInfo, lldb::eFormatDefault, lldb::eFormatInvalid, error(), lldb_private::Status::FromErrorString(), lldb_private::Status::FromErrorStringWithFormat(), lldb_private::OptionValueUInt64::GetCurrentValue(), lldb_private::OptionValueUInt64::GetDefaultValue(), m_byte_size, m_count, m_format, m_option_definitions, m_prev_gdb_format, m_prev_gdb_size, ParserGDBFormatLetter(), lldb_private::OptionValueFormat::SetCurrentValue(), lldb_private::OptionValueUInt64::SetCurrentValue(), lldb_private::OptionValue::SetOptionWasSet(), lldb_private::OptionValueFormat::SetValueFromString(), lldb_private::OptionValueUInt64::SetValueFromString(), lldb_private::OptionDefinition::short_option, and UINT64_MAX.
|
protected |
Definition at line 77 of file OptionGroupFormat.h.
Referenced by AnyOptionWasSet(), GetByteSizeValue(), GetDefinitions(), OptionParsingStarting(), and SetOptionValue().
|
protected |
Definition at line 78 of file OptionGroupFormat.h.
Referenced by AnyOptionWasSet(), GetCountValue(), GetDefinitions(), OptionParsingStarting(), and SetOptionValue().
|
protected |
Definition at line 76 of file OptionGroupFormat.h.
Referenced by AnyOptionWasSet(), GetFormat(), GetFormatValue(), OptionParsingStarting(), and SetOptionValue().
|
protected |
Definition at line 81 of file OptionGroupFormat.h.
Referenced by HasGDBFormat(), OptionParsingStarting(), and ParserGDBFormatLetter().
|
protected |
Definition at line 82 of file OptionGroupFormat.h.
Referenced by GetDefinitions(), OptionGroupFormat(), and SetOptionValue().
|
protected |
Definition at line 79 of file OptionGroupFormat.h.
Referenced by ParserGDBFormatLetter(), and SetOptionValue().
|
protected |
Definition at line 80 of file OptionGroupFormat.h.
Referenced by ParserGDBFormatLetter(), and SetOptionValue().
|
static |
Definition at line 29 of file OptionGroupFormat.h.
Referenced by CommandObjectMemoryRead::CommandObjectMemoryRead().
|
static |
Definition at line 26 of file OptionGroupFormat.h.
Referenced by lldb_private::CommandObjectDWIMPrint::CommandObjectDWIMPrint(), CommandObjectFrameVariable::CommandObjectFrameVariable(), CommandObjectMemoryRead::CommandObjectMemoryRead(), and CommandObjectTargetVariable::CommandObjectTargetVariable().
|
static |
Definition at line 27 of file OptionGroupFormat.h.
Referenced by lldb_private::CommandObjectDWIMPrint::CommandObjectDWIMPrint(), CommandObjectFrameVariable::CommandObjectFrameVariable(), CommandObjectMemoryRead::CommandObjectMemoryRead(), and CommandObjectTargetVariable::CommandObjectTargetVariable().
|
static |
Definition at line 28 of file OptionGroupFormat.h.
Referenced by CommandObjectMemoryRead::CommandObjectMemoryRead().