.apply_dbp (Apply Data Breakpoint to Context)

The .apply_dbp command applies the current process' existing data breakpoints to the specified register context.

    .apply_dbp [/m Context] 


/m Context
Specifies the address of a register context (CONTEXT structure) in memory to which to apply the current process' data breakpoints.



user mode and kernel mode


live target only



Additional Information

For more information about breakpoints controlled by the processor, see Processor Breakpoints (ba Breakpoints). For more information about the register context (thread context), see Register Context.


Breakpoints that are controlled by the processor are called data breakpoints or processor breakpoints. These breakpoints are created by the ba (Break on Access) command.

These breakpoints are associated with a memory location in the address space of a specific process. The .apply_dbp command modifies the specified register context so that these data breakpoints will be active when this context is used.

If the /m Address parameter is not used, data breakpoints will be applied to the current register context.

This command can only be used if the target is in native machine mode. For example, if the target is running on a 64-bit machine emulating an x86 processor using WOW64, this command cannot be used.

One example of a time this command is useful is when you are in an exception filter. The .apply_dbp command can update the exception filter's stored context. Data breakpoints will then be applied when the exception filter exits and the stored context is resumed. Without such a modification it is possible that data breakpoints would be lost.