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