class MockProcess

Defined at line 20 of file ../../src/developer/debug/zxdb/client/mock_process.h

Provides a Process implementation that just returns empty values for everything. Tests can

override this to implement the subset of functionality they need.

Public Methods

void GetModules (bool force_reload_symbols, fit::callback<void (const Err &, std::vector<debug_ipc::Module>)> )

Defined at line 17 of file ../../src/developer/debug/zxdb/client/mock_process.cc

void MockProcess (Target * target)

Defined at line 22 of file ../../src/developer/debug/zxdb/client/mock_process.h

void GetAspace (uint64_t address, fit::callback<void (const Err &, std::vector<debug_ipc::AddressRegion>)> )

Defined at line 23 of file ../../src/developer/debug/zxdb/client/mock_process.cc

void ~MockProcess ()

Defined at line 24 of file ../../src/developer/debug/zxdb/client/mock_process.h

void set_symbols (ProcessSymbols * s)

Sets the value returned by GetSymbols(). Does not take ownership.

Defined at line 27 of file ../../src/developer/debug/zxdb/client/mock_process.h

void set_tls_helpers (TLSHelpers h)

Sets the value returned by GetTLSHelpers().

Defined at line 30 of file ../../src/developer/debug/zxdb/client/mock_process.h

std::vector<Thread *> GetThreads ()

Defined at line 31 of file ../../src/developer/debug/zxdb/client/mock_process.cc

Thread * GetThreadFromKoid (uint64_t koid)

Defined at line 33 of file ../../src/developer/debug/zxdb/client/mock_process.cc

Target * GetTarget ()

Process implementation:

Defined at line 33 of file ../../src/developer/debug/zxdb/client/mock_process.h

uint64_t GetKoid ()

Defined at line 34 of file ../../src/developer/debug/zxdb/client/mock_process.h

const std::string & GetName ()

Defined at line 35 of file ../../src/developer/debug/zxdb/client/mock_process.h

void SyncThreads (fit::callback<void ()> callback)

Defined at line 35 of file ../../src/developer/debug/zxdb/client/mock_process.cc

const std::vector<debug_ipc::ComponentInfo> & GetComponentInfo ()

Defined at line 36 of file ../../src/developer/debug/zxdb/client/mock_process.h

ProcessSymbols * GetSymbols ()

Defined at line 39 of file ../../src/developer/debug/zxdb/client/mock_process.h

void Pause (fit::callback<void ()> on_paused)

Defined at line 39 of file ../../src/developer/debug/zxdb/client/mock_process.cc

bool HasLoadedSymbols ()

Defined at line 40 of file ../../src/developer/debug/zxdb/client/mock_process.h

SymbolStatus GetSymbolStatus ()

Defined at line 41 of file ../../src/developer/debug/zxdb/client/mock_process.h

void Continue (bool forward_exceptions)

Defined at line 44 of file ../../src/developer/debug/zxdb/client/mock_process.cc

void ContinueUntil (std::vector<InputLocation> location, fit::callback<void (const Err &)> cb)

Defined at line 46 of file ../../src/developer/debug/zxdb/client/mock_process.cc

fxl::RefPtr<SymbolDataProvider> GetSymbolDataProvider ()

Defined at line 51 of file ../../src/developer/debug/zxdb/client/mock_process.cc

void CancelAllThreadControllers ()

Defined at line 54 of file ../../src/developer/debug/zxdb/client/mock_process.h

void GetTLSHelpers (GetTLSHelpersCallback cb)

Defined at line 55 of file ../../src/developer/debug/zxdb/client/mock_process.cc

void ReadMemory (uint64_t address, uint32_t size, fit::callback<void (const Err &, MemoryDump)> callback)

Defined at line 63 of file ../../src/developer/debug/zxdb/client/mock_process.cc

void FetchMemoryRanges (std::vector<std::pair<uint64_t, uint32_t>> ranges, fit::callback<void ()> done)

unwinder::AsyncMemory::Delegate implementation.

Defined at line 66 of file ../../src/developer/debug/zxdb/client/mock_process.h

void WriteMemory (uint64_t address, std::vector<uint8_t> data, fit::callback<void (const Err &)> callback)

Defined at line 69 of file ../../src/developer/debug/zxdb/client/mock_process.cc

unwinder::Error ReadBytes (uint64_t addr, uint64_t size, void * dst)

Defined at line 70 of file ../../src/developer/debug/zxdb/client/mock_process.h

void LoadInfoHandleTable (fit::callback<void (ErrOr<std::vector<debug_ipc::InfoHandle>>)> callback)

Defined at line 75 of file ../../src/developer/debug/zxdb/client/mock_process.cc

std::optional<debug_ipc::AddressRegion> GetSharedAddressSpace ()

Defined at line 80 of file ../../src/developer/debug/zxdb/client/mock_process.cc