- const void* read_bytes(void* buffer, std::size_t size, RemotePtr<void> address,
- ReadOptions options = ReadOptions::none()) const override;
+ bool on_heap(const void* address) const
+ {
+ const s_xbt_mheap_t* heap = get_remote_process()->get_heap();
+ return address >= heap->heapbase && address < heap->breakval;
+ }
+
+ void* read_bytes(void* buffer, std::size_t size, RemotePtr<void> address,
+ ReadOptions options = ReadOptions::none()) const override;