mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 02:36:11 +08:00
libc/execinfo: add dump_stack support
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
+7
-1
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user