1 use gdbstub::target;
2 use gdbstub::target::ext::section_offsets::Offsets;
3 
4 use crate::gdb::Emu;
5 
6 // This implementation is for illustrative purposes only. If the offsets are
7 // guaranteed to be zero, this extension does not need to be implemented.
8 
9 impl target::ext::section_offsets::SectionOffsets for Emu {
get_section_offsets(&mut self) -> Result<Offsets<u32>, Self::Error>10     fn get_section_offsets(&mut self) -> Result<Offsets<u32>, Self::Error> {
11         Ok(Offsets::Sections {
12             text: 0,
13             data: 0,
14             bss: None,
15         })
16     }
17 }
18