Option to skip slow addr2line resolution in leak-detective

This commit is contained in:
Martin Willi
2010-05-20 17:37:18 +02:00
parent 36c1650b19
commit 091d178060
7 changed files with 80 additions and 53 deletions
+4 -1
View File
@@ -34,8 +34,11 @@ struct backtrace_t {
/**
* Log the backtrace to a FILE stream.
*
* @param file FILE to log backtrace to
* @param detailed TRUE to resolve line/file using addr2line (slow)
*/
void (*log)(backtrace_t *this, FILE *file);
void (*log)(backtrace_t *this, FILE *file, bool detailed);
/**
* Check if the backtrace contains a frame in a specific function.