From 5143df4e72666cd006b929123040330fd61a8ee7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Sandmann=20Pedersen?= Date: Sat, 21 Feb 2009 22:48:04 -0500 Subject: [PATCH] Get rid of hack to not fold recursions for "In file" symbols --- profile.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/profile.c b/profile.c index bf923447..41c70fca 100644 --- a/profile.c +++ b/profile.c @@ -232,22 +232,6 @@ profile_new (StackStash *stash) return profile; } -static gboolean -fold_recursion (gpointer address) -{ - /* This is a hack. - * - * The correct way to do it would be to have the address - * be a pointer to more information about the symbol; that - * way we could also do things like change the font. - * - * The problem with that is that we can't compatibly add - * this information to saved files, and we can't compute it - * without access to the processes who generated it. - */ - return strncmp (address, "In file", 7) != 0; -} - static void add_trace_to_tree (GList *trace, gint size, gpointer data) { @@ -276,7 +260,7 @@ add_trace_to_tree (GList *trace, gint size, gpointer data) } } - if (!match && fold_recursion (address)) + if (!match) { /* Have we seen this object further up the tree? */ for (match = parent; match != NULL; match = match->parent)