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 <ProcessWasm.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 ()
 operator lldb::addr_t ()

Public Attributes

uint64_t offset: 32
uint64_t module_id: 30
uint64_t type: 2

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 26 of file ProcessWasm.h.

Constructor & Destructor Documentation

◆ wasm_addr_t() [1/2]

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

Definition at line 31 of file ProcessWasm.h.

References module_id, offset, and type.

◆ 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 35 of file ProcessWasm.h.

References module_id, offset, and type.

Member Function Documentation

◆ GetType()

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

Definition at line 38 of file ProcessWasm.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 40 of file ProcessWasm.h.

Member Data Documentation

◆ module_id

uint64_t lldb_private::wasm::wasm_addr_t::module_id

Definition at line 28 of file ProcessWasm.h.

Referenced by wasm_addr_t(), and wasm_addr_t().

◆ offset

uint64_t lldb_private::wasm::wasm_addr_t::offset

Definition at line 27 of file ProcessWasm.h.

Referenced by wasm_addr_t(), and wasm_addr_t().

◆ type

uint64_t lldb_private::wasm::wasm_addr_t::type

Definition at line 29 of file ProcessWasm.h.

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


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