1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- #ifndef __INCLUDE_STACK_BACKTRACE_H__
- #define __INCLUDE_STACK_BACKTRACE_H__
- #include <kernel.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- #ifdef CONFIG_ARM_UNWIND
- void dump_stack(void);
- void show_thread_stack(struct k_thread *thread);
- void show_all_threads_stack(void);
- #else
- static inline void dump_stack(void)
- {
- }
- static inline void show_thread_stack(struct k_thread *thread)
- {
- ARG_UNUSED(thread);
- }
- static inline void show_all_threads_stack(void)
- {
- }
- #endif
- #ifdef __cplusplus
- }
- #endif
- #endif
|