CaptureBacktrace¶
Return stack trace.
Declaration¶
Source position: systemh.inc line 1608
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¶
| Name | Description |
|---|---|
| Get_pc_addr | Get Program Counter address. |
| get_caller_stackinfo | Return caller stack information. |
| get_caller_addr | Return the address of the caller. |
| get_caller_frame | Return the frame pointer of the caller. |