state.c : some more debug for warning and change the parent PID if no parent to 0...
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 1 Oct 2003 04:02:26 +0000 (04:02 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 1 Oct 2003 04:02:26 +0000 (04:02 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@288 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/state.c

index a76918a24669c26ba47339b12091fbbf848e0c72..340f639cb3b98aeff31ecf46e2ae904902a389b7 100644 (file)
@@ -291,6 +291,14 @@ static void pop_state(LttvTracefileState *tfs, LttvInterruptType t)
   //  g_assert(process->state->t == t);
   if(process->state->t != t){
     g_warning("Different interrupt type: ignore it\n");
+    g_warning("process state has %s when pop_int is %s\n",
+                   g_quark_to_string(process->state->t),
+                   g_quark_to_string(t));
+    g_warning("{ %u, %u, %s, %s }\n",
+                   process->pid,
+                   process->ppid,
+                   g_quark_to_string(process->name),
+                   g_quark_to_string(process->state->s));
     return;
   }
   g_array_remove_index(process->interrupt_stack, depth);
@@ -318,6 +326,7 @@ LttvProcessState *create_process(LttvTracefileState *tfs,
   g_hash_table_insert(tcs->processes, GUINT_TO_POINTER(pid), process);
   process->pid = pid;
   if(parent) process->ppid = parent->pid;
+  else process->ppid = 0;
   process->birth = tfc->timestamp;
   process->name = LTTV_STATE_UNNAMED;
   process->interrupt_stack = g_array_new(FALSE, FALSE, 
This page took 0.024195 seconds and 4 git commands to generate.