Debugging Tools for Windows |
The OutputStackTrace method outputs either the supplied stack frame or the current stack frames.
HRESULT
IDebugControl::OutputStackTrace(
IN ULONG OutputControl,
IN OPTIONAL DEBUG_STACK_FRAME * Frames,
IN ULONG FramesSize,
IN ULONG Flags
);
Flag | Description |
---|---|
DEBUG_STACK_ARGUMENTS | Displays the first three pieces of stack memory at the frame of each call. On platforms where parameters are passed on the stack, and the code for the frame uses stack arguments, these values will be the arguments to the function. |
DEBUG_STACK_FUNCTION_INFO | Displays information about the function that corresponds to the frame. This includes calling convention and frame pointer omission (FPO) information. |
DEBUG_STACK_SOURCE_LINE | Displays source line information for each frame of the stack trace. |
DEBUG_STACK_FRAME_ADDRESSES | Displays the return address, previous frame address, and other relevant addresses for each frame. |
DEBUG_STACK_COLUMN_NAMES | Displays column names. |
DEBUG_STACK_NONVOLATILE_REGISTERS | Displays the non-volatile register context for each frame. This is only meaningful for some platforms. |
DEBUG_STACK_FRAME_NUMBERS | Displays frame numbers. |
DEBUG_STACK_PARAMETERS | Displays parameter names and values as given in symbol information. |
DEBUG_STACK_FRAME_ADDRESSES_RA_ONLY | Displays just the return address in stack frame addresses. |
DEBUG_STACK_FRAME_MEMORY_USAGE | Displays the number of bytes that separate the frames. |
DEBUG_STACK_PARAMETERS_NEWLINE | Displays each parameter and its type and value on a new line. |
This method may also return error values. See Return Values for more details.
OutputStackTrace is available in all versions of IDebugControl.
The array of stack frames can be obtained using GetStackTrace.
Headers: Defined in Dbgeng.h. Include Dbgeng.h.
GetContextStackTrace, GetStackTrace, k, kb, kd, kp, kP, kv (Display Stack Backtrace)