From 85766bc4997fdf402c61273889c1cae49bc325d7 Mon Sep 17 00:00:00 2001 From: Michel Heily Date: Thu, 8 Sep 2022 23:48:00 +0300 Subject: [PATCH] Fix SimpleMemory memory_map_xml Former-commit-id: 391758925af1c1082536e14e382ca37338e95f55 Former-commit-id: 51ba0286fc9f5c4b413ab5e50fd928b0bb0c4d4b --- arm7tdmi/src/simple_memory.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arm7tdmi/src/simple_memory.rs b/arm7tdmi/src/simple_memory.rs index 9e63fa1..1037c9b 100644 --- a/arm7tdmi/src/simple_memory.rs +++ b/arm7tdmi/src/simple_memory.rs @@ -69,13 +69,13 @@ impl DebugRead for SimpleMemory { impl MemoryGdbInterface for SimpleMemory { fn memory_map_xml(&self, offset: u64, length: usize, buf: &mut [u8]) -> usize { - let memory_map = r#" + let memory_map = format!(r#" - - "# + + "#, self.data.len()) .trim() .as_bytes(); copy_range_to_buf(memory_map, offset, length, buf)