[memprof: 66/76] main.c: Fixup in case the contains malloc or similiar in the backtrace



commit ba79ef7e3c229e3f75fd1200af876936c80a2368
Author: Holger Hans Peter Freyther <zecke selfish org>
Date:   Tue Mar 9 08:01:11 2010 +0100

    main.c: Fixup in case the contains malloc or similiar in the backtrace
    
    The memintercept.c should generate backtraces without the stack for
    malloc, calloc, realloc but it appears that it is sometimes failing. Fix
    it up by adding them to the skip funcs too while investigating the source
    of this defect.

 src/main.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index b5f4ca2..478b994 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1742,6 +1742,9 @@ initialize_skip_funcs ()
 {
 	gint i = 0;
 
+	skip_funcs = g_slist_append (skip_funcs, "malloc");
+	skip_funcs = g_slist_append (skip_funcs, "calloc");
+	skip_funcs = g_slist_append (skip_funcs, "realloc");
 	skip_funcs = g_slist_append (skip_funcs, "g_malloc");
 	skip_funcs = g_slist_append (skip_funcs, "g_malloc0");
 	skip_funcs = g_slist_append (skip_funcs, "g_realloc");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]