pub trait RegId: Sized + Debug {
// Required method
fn from_raw_id(id: usize) -> Option<(Self, Option<NonZeroUsize>)>;
}Expand description
Register identifier for target registers.
These identifiers are used by GDB to signal which register to read/wite when performing single register accesses.
Required Methods§
Sourcefn from_raw_id(id: usize) -> Option<(Self, Option<NonZeroUsize>)>
fn from_raw_id(id: usize) -> Option<(Self, Option<NonZeroUsize>)>
Map raw GDB register number to a corresponding RegId and optional
register size.
If the register size is specified here, gdbstub will include a runtime check that ensures target implementations do not send back more bytes than the register allows.
Returns None if the register is not available.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl RegId for ()
Stub implementation – Returns None for all raw IDs.
impl RegId for ()
Stub implementation – Returns None for all raw IDs.