Sign in Join
FPDoc Onlineexperiment

CaptureBacktrace function

In unit System

Return stack trace.

Declaration

pascal
function CaptureBacktrace(skipframes: SizeInt; count: SizeInt; 
 frames: PCodePointer): SizeInt

Description

CaptureBacktrace will fill the array pointed to by frames with the addresses of a backtrace. It will skip skipframes frames, and will write at most count addresses. Frames must point to enough memory to hold the stacktrace, which is count*sizeof(codepointer) bytes.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.