LLDB mainline
lldb_private::wasm::wasm_addr_t Struct Reference

For the purpose of debugging, we can represent all these separated 32-bit address spaces with a single virtual 64-bit address space. More...

#include <WasmAddress.h>

Public Member Functions

 wasm_addr_t (lldb::addr_t addr)
 wasm_addr_t (WasmAddressType type, uint32_t module_id, uint32_t offset)
WasmAddressType GetType () const
uint32_t GetModuleID () const
uint32_t GetOffset () const
 operator lldb::addr_t ()

Public Attributes

uint64_t offset: kWasmOffsetBits
uint64_t module_id: kWasmModuleIDBits
uint64_t type: kWasmAddressTypeBits

Detailed Description

For the purpose of debugging, we can represent all these separated 32-bit address spaces with a single virtual 64-bit address space.

The wasm_addr_t provides this encoding using bitfields.

Definition at line 62 of file WasmAddress.h.

Constructor & Destructor Documentation

◆ wasm_addr_t() [1/2]

◆ wasm_addr_t() [2/2]

lldb_private::wasm::wasm_addr_t::wasm_addr_t ( WasmAddressType type,
uint32_t module_id,
uint32_t offset )
inline

Definition at line 72 of file WasmAddress.h.

References module_id, offset, and type.

Member Function Documentation

◆ GetModuleID()

uint32_t lldb_private::wasm::wasm_addr_t::GetModuleID ( ) const
inline

Definition at line 76 of file WasmAddress.h.

References module_id.

Referenced by lldb_private::wasm::ProcessWasm::ReadMemory().

◆ GetOffset()

uint32_t lldb_private::wasm::wasm_addr_t::GetOffset ( ) const
inline

Definition at line 77 of file WasmAddress.h.

References offset.

Referenced by lldb_private::wasm::ProcessWasm::ReadMemory().

◆ GetType()

WasmAddressType lldb_private::wasm::wasm_addr_t::GetType ( ) const
inline

Definition at line 75 of file WasmAddress.h.

References type.

Referenced by lldb_private::wasm::ProcessWasm::ReadMemory().

◆ operator lldb::addr_t()

lldb_private::wasm::wasm_addr_t::operator lldb::addr_t ( )
inline

Definition at line 79 of file WasmAddress.h.

Member Data Documentation

◆ module_id

uint64_t lldb_private::wasm::wasm_addr_t::module_id

Definition at line 64 of file WasmAddress.h.

Referenced by GetModuleID(), wasm_addr_t(), and wasm_addr_t().

◆ offset

uint64_t lldb_private::wasm::wasm_addr_t::offset

Definition at line 63 of file WasmAddress.h.

Referenced by GetOffset(), wasm_addr_t(), and wasm_addr_t().

◆ type

uint64_t lldb_private::wasm::wasm_addr_t::type

Definition at line 65 of file WasmAddress.h.

Referenced by GetType(), wasm_addr_t(), and wasm_addr_t().


The documentation for this struct was generated from the following file: