pub struct Dr7(pub usize);
Tuple Fields§
§0: usize
Implementations§
Source§impl 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.