Upravit

Sdílet prostřednictvím


.trap (Display Trap Frame)

The .trap command displays the trap frame register state and also sets the register context.

.trap [Address]

Parameters

Address
Hexadecimal address of the trap frame on the target system. Omitting the address does not display any trap frame information, but it does reset the register context.

Environment

Item Description
Modes kernel mode only
Targets live, crash dump
Platforms all

Additional Information

For more information about the register context and other context settings, see Changing Contexts.

Remarks

The .trap command displays the important registers for the specified trap frame.

This command also instructs the kernel debugger to use the specified context record as the register context. After this command is executed, the debugger will have access to the most important registers and the stack trace for this thread. This register context persists until you allow the target to execute or use another register context command (.thread, .cxr, or .trap). See Register Context for full details.

This extension is commonly used when debugging bug check 0xA and 0x7F. For details and an example, see Bug Check 0xA (IRQL_NOT_LESS_OR_EQUAL).