Make these function call back with GLists rather than GSLists.

Sun Nov  6 18:31:23 2005  Soeren Sandmann  <sandmann@redhat.com>

        * stackstash.c (stack_stash_foreach):
        * stackstash.c (stack_node_foreach_trace): Make these function
        call back with GLists rather than GSLists.

        * profile.c (add_trace_to_tree): Iterate backwards instead of
        copying the list.
This commit is contained in:
Soeren Sandmann
2005-11-06 23:27:17 +00:00
committed by Søren Sandmann Pedersen
parent c1bfbbf9b8
commit 64b2627c4a
5 changed files with 27 additions and 17 deletions

View File

@ -256,16 +256,16 @@ lookup_symbol (Process *process, gpointer address, GHashTable *unique_symbols)
}
static void
resolve_symbols (GSList *trace, gint size, gpointer data)
resolve_symbols (GList *trace, gint size, gpointer data)
{
GSList *slist;
GList *list;
ResolveInfo *info = data;
Process *process = g_slist_last (trace)->data;
Process *process = g_list_last (trace)->data;
GPtrArray *resolved_trace = g_ptr_array_new ();
for (slist = trace; slist && slist->next; slist = slist->next)
for (list = trace; list && list->next; list = list->next)
{
gpointer address = slist->data;
gpointer address = list->data;
char *symbol;
symbol = lookup_symbol (process, address, info->unique_symbols);