class MockMemory
Defined at line 24 of file ../../src/lib/unwinder/testing/mock_memory.h
A fake implementation of Memory that stores literal bytes.
It is called "MockMemory" to align with zxdb naming conventions.
Example usage:
MockMemory mock_memory;
uint64_t val = 0xdeadbeef;
mock_memory.AddMemory(0x1000, std::vector
<uint8
_t>(
reinterpret_cast
<uint8
_t*>(
&val
),
reinterpret_cast
<uint8
_t*>(
&val
) + sizeof(val)));
Public Methods
void AddMemory (uint64_t addr, std::vector<uint8_t> data)
Defined at line 26 of file ../../src/lib/unwinder/testing/mock_memory.h
Error ReadBytes (uint64_t addr, uint64_t size, void * dst)
Defined at line 28 of file ../../src/lib/unwinder/testing/mock_memory.h