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::*;

#[derive(Debug)]
pub struct qRegisterInfo {
    pub reg_id: usize,
}

impl<'a> ParseCommand<'a> for qRegisterInfo {
    #[inline(always)]
    fn from_packet(buf: PacketBuf<'a>) -> Option<Self> {
        let body = buf.into_body();

        let reg_id = decode_hex(body).ok()?;

        Some(qRegisterInfo { reg_id })
    }
}