libc/execinfo: add dump_stack support

Change-Id: I8485bd36caf09341ce5a787ec8cce7883e46043d
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an
2021-03-31 11:28:07 +08:00
parent 3330b95042
commit 177635dda3
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 */