libc/execinfo: add dump_stack support

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an
2021-03-31 11:28:07 +08:00
committed by David Sidrane
parent 27dd771336
commit 137eb594cb
3 changed files with 76 additions and 2 deletions
+7 -1
View File
@@ -25,10 +25,16 @@
* Public Function Prototypes
****************************************************************************/
#if defined(CONFIG_EABI_UNWINDER)
/* Store up to SIZE return address of the current program state in
* ARRAY and return the exact number of values stored.
*/
extern int backtrace(FAR void **buffer, int size);
extern int backtrace(FAR void **buffer, int size);
extern void dump_stack(void);
#else
# define dump_stack()
#endif
#endif /* __INCLUDE_EXECINFO_H */