log: Add log_callstack_to_file()

This makes it trivial to log the callstack to, e.g., stderr, which can
simplify debug cycles.
This commit is contained in:
James McCoy
2017-08-09 13:30:34 -04:00
parent e13b4a21ca
commit 17eb20b22e
3 changed files with 20 additions and 11 deletions

View File

@@ -63,6 +63,7 @@
#ifdef HAVE_EXECINFO_BACKTRACE
# define LOG_CALLSTACK() log_callstack(__func__, __LINE__)
# define LOG_CALLSTACK_TO_FILE(fp) log_callstack_to_file(fp, __func__, __LINE__)
#endif
#ifdef INCLUDE_GENERATED_DECLARATIONS