pub struct Dr7(pub usize);

Tuple Fields

0: usize

Implementations

Empty Dr7 has bit 10 always set.

Bit that controls debug-register protection.

Bit that controls debugging of RTM transactional regions.

Bit that controls global exact breakpoints.

Bit that controls local exact breakpoints.

Configures a breakpoint condition bc and size bs for the associated breakpoint bp.

Note

This should be called before enable_bp.

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.

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.

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.

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.

Enables advanced debugging of RTM transactional regions.

Note

This advanced debugging is enabled only if IA32_DEBUGCTL.RTM is also set.

Enables debug-register protection, which causes a debug exception to be generated prior to any MOV instruction that accesses a debug register.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.