Hey, it appears to not crash

This commit is contained in:
Søren Sandmann Pedersen
2004-10-29 22:27:30 +00:00
parent aacf216239
commit 7b07956eb3
2 changed files with 112 additions and 21 deletions

View File

@ -106,9 +106,15 @@ on_read (gpointer data)
Application *app = data;
SysprofStackTrace trace;
int rd;
int i;
rd = read (app->input_fd, &trace, sizeof (trace));
g_print ("pid: %d\n", trace.pid);
for (i=0; i < trace.n_addresses; ++i)
g_print ("rd: %08x\n", trace.addresses[i]);
g_print ("-=-\n");
if (rd > 0 && app->profiling && !app->generating_profile)
{
Process *process = process_get_from_pid (trace.pid);