Added a convenience function to dump backtraces for gdb-less debugging
This commit is contained in:
@@ -77,4 +77,13 @@ struct backtrace_t {
|
||||
*/
|
||||
backtrace_t *backtrace_create(int skip);
|
||||
|
||||
/**
|
||||
* Create a backtrace, dump it and clean it up.
|
||||
*
|
||||
* @param label description to print for this backtrace, or NULL
|
||||
* @param file FILE to log backtrace to
|
||||
* @param detailed TRUE to resolve line/file using addr2line (slow)
|
||||
*/
|
||||
void backtrace_dump(char *label, FILE *file, bool detailed);
|
||||
|
||||
#endif /** BACKTRACE_H_ @}*/
|
||||
|
||||
Reference in New Issue
Block a user