mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
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:
committed by
Søren Sandmann Pedersen
parent
c1bfbbf9b8
commit
64b2627c4a
10
collector.c
10
collector.c
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user