pub struct Dr7(pub usize);
Tuple Fields
0: usize
Implementations
sourceimpl Dr7
impl Dr7
sourcepub fn configure_bp(
&mut self,
bp: Breakpoint,
bc: BreakCondition,
bs: BreakSize
)
pub fn configure_bp(
&mut self,
bp: Breakpoint,
bc: BreakCondition,
bs: BreakSize
)
Configures a breakpoint condition bc
and size bs
for the associated
breakpoint bp
.
Note
This should be called before enable_bp
.
sourcepub fn enable_bp(&mut self, bp: Breakpoint, global: bool)
pub fn enable_bp(&mut self, bp: Breakpoint, global: bool)
Enables the breakpoint condition for the associated breakpoint.
Arguments
bp
- The breakpoint to enable.global
- If true, the breakpoint is global (e.g., never reset on task switches). If false, the CPU resets the flag (disables bp) on task switch.
sourcepub fn disable_bp(&mut self, bp: Breakpoint, global: bool)
pub fn disable_bp(&mut self, bp: Breakpoint, global: bool)
Disables the breakpoint condition for the associated breakpoint.
bp
: The breakpoint to disable.global
: If true, the global breakpoint bit is unset (e.g., never reset on task switches). If false, the local breakpoint bit is unset.
sourcepub fn enable_exact_local_bp(&mut self)
pub fn enable_exact_local_bp(&mut self)
Local exact breakpoint enable.
This flag causes the processor to detect the exact instruction that caused a data breakpoint condition. This feature is not supported in the P6 family processors, later IA-32 processors, and Intel 64 processors.
For backward and forward compatibility with other Intel processors, Intel recommends that the LE flag be set to 1 if exact breakpoints are required.
sourcepub fn enable_exact_global_bp(&mut self)
pub fn enable_exact_global_bp(&mut self)
Global exact breakpoint enable.
This flag causes the processor to detect the exact instruction that caused a data breakpoint condition. This feature is not supported in the P6 family processors, later IA-32 processors, and Intel 64 processors.
For backward and forward compatibility with other Intel processors, Intel recommends that the GE flag be set to 1 if exact breakpoints are required.
sourcepub fn enable_rtm(&mut self)
pub fn enable_rtm(&mut self)
Enables advanced debugging of RTM transactional regions.
Note
This advanced debugging is enabled only if IA32_DEBUGCTL.RTM is also set.
sourcepub fn enable_general_detect(&mut self)
pub fn enable_general_detect(&mut self)
Enables debug-register protection, which causes a debug exception to be generated prior to any MOV instruction that accesses a debug register.
Trait Implementations
impl Copy for Dr7
impl Eq for Dr7
impl StructuralEq for Dr7
impl StructuralPartialEq for Dr7
Auto Trait Implementations
impl RefUnwindSafe for Dr7
impl Send for Dr7
impl Sync for Dr7
impl Unpin for Dr7
impl UnwindSafe for Dr7
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more