aboutsummaryrefslogtreecommitdiff
path: root/examples/armv4t/gdb/section_offsets.rs
blob: d04aab702b706b0291fbdfedeccbaba695b0f821 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use gdbstub::target;
use gdbstub::target::ext::section_offsets::Offsets;

use crate::gdb::Emu;

// This implementation is for illustrative purposes only. If the offsets are
// guaranteed to be zero, this extension does not need to be implemented.

impl target::ext::section_offsets::SectionOffsets for Emu {
    fn get_section_offsets(&mut self) -> Result<Offsets<u32>, Self::Error> {
        Ok(Offsets::Sections {
            text: 0,
            data: 0,
            bss: None,
        })
    }
}