|
KallistiOS git master
Independent SDK for the Sega Dreamcast
|
API for managing stack backtracing More...
Files | |
| file | stack.h |
| Stack tracing. | |
Functions | |
| void | arch_stk_trace (int n) |
| Do a stack trace from the current function. | |
| void | arch_stk_trace_at (uint32_t fp, size_t n) |
| Do a stack trace from the current function. | |
API for managing stack backtracing
| void arch_stk_trace | ( | int | n | ) |
Do a stack trace from the current function.
This function does a stack trace from the current function, printing the results to stdout. This is used, for instance, when an assertion fails in assert().
| n | The number of frames to leave off. Each frame is a jump to subroutine or branch to subroutine. assert() leaves off 2 frames, for reference. |
| void arch_stk_trace_at | ( | uint32_t | fp, |
| size_t | n ) |
Do a stack trace from the current function.
This function does a stack trace from the the specified frame pointer, printing the results to stdout. This could be used for doing something like stack tracing a main thread from inside an IRQ handler.
| fp | The frame pointer to start from. |
| n | The number of frames to leave off. |