pub struct RegisterContext {
pub cpu_type: CpuType,
pub is_64_bit: bool,
/* private fields */
}Expand description
Register context holding register values indexed by DWARF register number.
Supports ARM64 and x86_64 DWARF register maps.
Fields§
§cpu_type: CpuType§is_64_bit: boolImplementations§
Source§impl RegisterContext
impl RegisterContext
Sourcepub fn clear_volatile(&mut self)
pub fn clear_volatile(&mut self)
Clears all volatile registers, keeping only non-volatile ones + SP + PC.
Sourcepub fn from_thread_state(state: &ThreadState, cpu_type: CpuType) -> Option<Self>
pub fn from_thread_state(state: &ThreadState, cpu_type: CpuType) -> Option<Self>
Converts from the existing ThreadState type used by CrashRustler.
Trait Implementations§
Source§impl Clone for RegisterContext
impl Clone for RegisterContext
Source§fn clone(&self) -> RegisterContext
fn clone(&self) -> RegisterContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RegisterContext
impl RefUnwindSafe for RegisterContext
impl Send for RegisterContext
impl Sync for RegisterContext
impl Unpin for RegisterContext
impl UnsafeUnpin for RegisterContext
impl UnwindSafe for RegisterContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more