use super::copy_range_to_buf; use crate::emu::Emu; use gdbstub::target; use gdbstub::target::TargetResult; impl target::ext::memory_map::MemoryMap for Emu { fn memory_map_xml( &self, offset: u64, length: usize, buf: &mut [u8], ) -> TargetResult { // Sample memory map, with RAM coverying the whole // memory space. let memory_map = r#" "# .trim() .as_bytes(); Ok(copy_range_to_buf(memory_map, offset, length, buf)) } }