gdbstub 0.7.10

An implementation of the GDB Remote Serial Protocol in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// use super::prelude::*; // unused
use crate::protocol::common::qxfer::ParseAnnex;
use crate::protocol::common::qxfer::QXferReadBase;

pub type qXferFeaturesRead<'a> = QXferReadBase<'a, FeaturesAnnex<'a>>;

#[derive(Debug)]
pub struct FeaturesAnnex<'a> {
    pub name: &'a [u8],
}

impl<'a> ParseAnnex<'a> for FeaturesAnnex<'a> {
    #[inline(always)]
    fn from_buf(buf: &'a [u8]) -> Option<Self> {
        Some(FeaturesAnnex { name: buf })
    }
}