Partager via


Debugger Extension Functions (Compact 2013)

3/26/2014

You can use functions that are exposed by the WDbgExts_CE.h header file in debugger extension commands. When developing a debugger extension, these functions can be help you control and examine the target device being debugged.

The following table shows debugger extension functions.

Programming element

Description

CheckControlC

This function checks to see whether the user pressed the CTRL+C key combination.

Disassm

This function disassembles an instruction and stores a string in a buffer that can be printed.

dprintf

This function prints a formatted string to the command window for the debugger.

EXTSTACKTRACE

This structure specifies stack frames for the StackTrace function.

GetContext

This function obtains the context of the process being debugged.

GetDebuggerData

This function retrieves information stored in a data block.

GetExpression

This function returns the value of an expression.

GetSetSympath

This function obtains or sets the search path for symbols.

GetSymbol

This function locates the symbol nearest to a specified address.

Ioctl

This function is an entry point for a substantial amount of the functionality provided by the extension functions for the kernel debugger.

ReadControlSpace

This function reads a CPU-specific control space into an array.

ReadIoSpace

This function reads from system I/O locations.

ReadMemory

This function reads memory from the process being debugged. The entire memory must be accessible, or the operation will fail.

ReadPhysical

This function reads from physical memory.

SetContext

This function sets the context of the process being debugged.

SetThreadForOperation

This function specifies a thread to use for the next call to the StackTrace function.

StackTrace

This function receives a stack trace for the process being debugged.

WriteIoSpace

This function writes to system I/O locations.

WriteMemory

This function writes memory to a process being debugged. The entire memory must be accessible, or the operation will fail.

WritePhysical

This function writes to physical memory.

See Also

Reference

Target Control Debugging