9#ifndef LLDB_LLDB_PRIVATE_TYPES_H
10#define LLDB_LLDB_PRIVATE_TYPES_H
14#include "llvm/ADT/ArrayRef.h"
15#include "llvm/ADT/SmallString.h"
27class ExecutionContext;
74 llvm::ArrayRef<uint8_t>
data(
const uint8_t *context_base)
const {
78 llvm::MutableArrayRef<uint8_t>
mutable_data(uint8_t *context_base)
const {
79 return llvm::MutableArrayRef<uint8_t>(context_base +
byte_offset,
83static_assert(std::is_trivial<RegisterInfo>::value,
84 "RegisterInfo must be trivial.");
109 :
name(name_vers ? name_vers->first : 0),
110 version(name_vers ? name_vers->second : 0) {}
111 operator bool()
const {
return name > 0; }
static llvm::raw_ostream & error(Stream &strm)
A uniqued constant string class.
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
This base class provides an interface to stack frames.
A class that represents a running process on the host machine.
llvm::SmallString< 256 > PathSmallString
void(* DebuggerDestroyCallback)(lldb::user_id_t debugger_id, void *baton)
std::function< lldb::ValueObjectSP(ConstString, StackFrame *)> ValueObjectProviderTy
Functor that returns a ValueObjectSP for a variable given its name and the StackFrame of interest.
bool(* CommandOverrideCallbackWithResult)(void *baton, const char **argv, lldb_private::CommandReturnObject &result)
llvm::sys::DynamicLibrary(* LoadPluginCallbackType)(const lldb::DebuggerSP &debugger_sp, const FileSpec &spec, Status &error)
llvm::ArrayRef< OptionEnumValueElement > OptionEnumValues
std::shared_ptr< lldb_private::ValueObject > ValueObjectSP
Format
Display format definitions.
LanguageType
Programming language type.
std::shared_ptr< lldb_private::Debugger > DebuggerSP
Encoding
Register encoding definitions.
const char * string_value
virtual ~OptionValidator()=default
virtual const char * LongConditionString() const =0
virtual const char * ShortConditionString() const =0
virtual bool IsValid(Platform &platform, const ExecutionContext &target) const =0
Every register is described in detail including its name, alternate name (optional),...
llvm::MutableArrayRef< uint8_t > mutable_data(uint8_t *context_base) const
lldb::Encoding encoding
Encoding of the register bits.
const char * alt_name
Alternate name of this register, can be NULL.
uint32_t * value_regs
List of registers (terminated with LLDB_INVALID_REGNUM).
uint32_t byte_offset
The byte offset in the register context data where this register's value is found.
uint32_t byte_size
Size in bytes of the register.
uint32_t kinds[lldb::kNumRegisterKinds]
Holds all of the various register numbers for all register kinds.
const RegisterFlags * flags_type
If not nullptr, a type defined by XML descriptions.
llvm::ArrayRef< uint8_t > data(const uint8_t *context_base) const
const char * name
Name of this register, can't be NULL.
lldb::Format format
Default display format.
uint32_t * invalidate_regs
List of registers (terminated with LLDB_INVALID_REGNUM).
Registers are grouped into register sets.
size_t num_registers
The number of registers in REGISTERS array below.
const uint32_t * registers
An array of register indices in this set.
const char * name
Name of this register set.
const char * short_name
A short name for this register set.
A type-erased pair of llvm::dwarf::SourceLanguageName and version.
lldb::LanguageType AsLanguageType() const
SourceLanguage(std::optional< std::pair< uint16_t, uint32_t > > name_vers)
SourceLanguage(uint16_t name, uint32_t version)
llvm::StringRef GetDescription() const