class MockSymbolDataProvider

Defined at line 19 of file ../../src/developer/debug/zxdb/symbols/mock_symbol_data_provider.h

An implementation of SymbolDataProvider for testing.

Public Methods

void AddRegisterValue (debug::RegisterID id, bool synchronous, uint64_t value)

Adds the given canned result for the given register. Set synchronous if the register contents

should be synchronously available, false if it should require a callback to retrieve. If the

uint64_t version is called, the register is assumed to be 64 bits.

Any registers not set will be synchronously reported as unknown.

Defined at line 19 of file ../../src/developer/debug/zxdb/symbols/mock_symbol_data_provider.cc

void set_arch (debug::Arch arch)

Defined at line 27 of file ../../src/developer/debug/zxdb/symbols/mock_symbol_data_provider.h

void AddRegisterValue (debug::RegisterID id, bool synchronous, std::vector<uint8_t> value)

Defined at line 27 of file ../../src/developer/debug/zxdb/symbols/mock_symbol_data_provider.cc

void set_entry_provider (fxl::RefPtr<SymbolDataProvider> ep)

Defined at line 28 of file ../../src/developer/debug/zxdb/symbols/mock_symbol_data_provider.h

void set_ip (uint64_t ip)

Defined at line 31 of file ../../src/developer/debug/zxdb/symbols/mock_symbol_data_provider.h

void set_bp (uint64_t bp)

Defined at line 32 of file ../../src/developer/debug/zxdb/symbols/mock_symbol_data_provider.h

void AddMemory (uint64_t address, std::vector<uint8_t> data)

Sets an expected memory value.

Defined at line 32 of file ../../src/developer/debug/zxdb/symbols/mock_symbol_data_provider.cc

void set_cfa (uint64_t cfa)

Defined at line 33 of file ../../src/developer/debug/zxdb/symbols/mock_symbol_data_provider.h

void set_tls_segment (uint64_t address)

Defined at line 34 of file ../../src/developer/debug/zxdb/symbols/mock_symbol_data_provider.h

fxl::RefPtr<SymbolDataProvider> GetEntryDataProvider ()

Defined at line 36 of file ../../src/developer/debug/zxdb/symbols/mock_symbol_data_provider.cc

std::optional<cpp20::span<const uint8_t>> GetRegister (debug::RegisterID id)

Defined at line 40 of file ../../src/developer/debug/zxdb/symbols/mock_symbol_data_provider.cc

RegisterWrites GetRegisterWrites ()

Returns the list of all memory written by WriteRegister/WriteMemory calls as a series of (dest,

data) pairs. The stored list will be cleared by this call.

Defined at line 49 of file ../../src/developer/debug/zxdb/symbols/mock_symbol_data_provider.h

MemoryWrites GetMemoryWrites ()

Defined at line 50 of file ../../src/developer/debug/zxdb/symbols/mock_symbol_data_provider.h

debug::Arch GetArch ()

SymbolDataProvider implementation.

Defined at line 53 of file ../../src/developer/debug/zxdb/symbols/mock_symbol_data_provider.h

void GetRegisterAsync (debug::RegisterID id, GetRegisterCallback callback)

Defined at line 57 of file ../../src/developer/debug/zxdb/symbols/mock_symbol_data_provider.cc

void WriteRegister (debug::RegisterID id, std::vector<uint8_t> data, WriteCallback cb)

Defined at line 75 of file ../../src/developer/debug/zxdb/symbols/mock_symbol_data_provider.cc

std::optional<uint64_t> GetFrameBase ()

Defined at line 83 of file ../../src/developer/debug/zxdb/symbols/mock_symbol_data_provider.cc

void GetFrameBaseAsync (GetFrameBaseCallback callback)

Defined at line 85 of file ../../src/developer/debug/zxdb/symbols/mock_symbol_data_provider.cc

std::optional<uint64_t> GetDebugAddressForContext (const SymbolContext & )

Defined at line 97 of file ../../src/developer/debug/zxdb/symbols/mock_symbol_data_provider.cc

void GetTLSSegment (const SymbolContext & symbol_context, GetTLSSegmentCallback cb)

Defined at line 102 of file ../../src/developer/debug/zxdb/symbols/mock_symbol_data_provider.cc

uint64_t GetCanonicalFrameAddress ()

Defined at line 108 of file ../../src/developer/debug/zxdb/symbols/mock_symbol_data_provider.cc

void GetMemoryAsync (uint64_t address, uint32_t size, GetMemoryCallback callback)

Defined at line 110 of file ../../src/developer/debug/zxdb/symbols/mock_symbol_data_provider.cc

void WriteMemory (uint64_t address, std::vector<uint8_t> data, WriteCallback cb)

Defined at line 117 of file ../../src/developer/debug/zxdb/symbols/mock_symbol_data_provider.cc

Friends

class RefCountedThreadSafe
class MakeRefCountedHelper