Low‐level stack trace helpers shared by the public GetStack*() routines.

Functions

Name

Description

FixUpStack

Fixes up the stack trace of the current thread, in the first depth frames of each buffer. The buffers need to be larger than depth, to accommodate any newly inserted elements. depth is updated to reflect the new number of elements valid across all the buffers. (It is therefore recommended that all buffer sizes be equal.)

GetStackTraceNoFixup

Same as GetStackTrace(), but skips fix‐ups for efficiency.

ShouldFixUpStack

Returns true if the platform's stack unwinder is expected to need fix‐ups applied via FixUpStack().

Created with MrDocs