pub trait MemoryMap: Target {
// Required method
fn memory_map_xml(
&self,
offset: u64,
length: usize,
buf: &mut [u8]
) -> TargetResult<usize, Self>;
}
Expand description
Target Extension - Read the target’s memory map.
Required Methods§
sourcefn memory_map_xml(
&self,
offset: u64,
length: usize,
buf: &mut [u8]
) -> TargetResult<usize, Self>
fn memory_map_xml( &self, offset: u64, length: usize, buf: &mut [u8] ) -> TargetResult<usize, Self>
Get memory map XML file from the target.
See the GDB Documentation for a description of the format.
Return the number of bytes written into buf
(which may be less than
length
).
If offset
is greater than the length of the underlying data, return
Ok(0)
.