From 8e8e6b6456c0038e95e3681f741bda3faeb74955 Mon Sep 17 00:00:00 2001 From: compudj Date: Wed, 1 Oct 2003 04:02:26 +0000 Subject: [PATCH] state.c : some more debug for warning and change the parent PID if no parent to 0 instead of undefined git-svn-id: http://ltt.polymtl.ca/svn@288 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/lttv/state.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ltt/branches/poly/lttv/state.c b/ltt/branches/poly/lttv/state.c index a76918a2..340f639c 100644 --- a/ltt/branches/poly/lttv/state.c +++ b/ltt/branches/poly/lttv/state.c @@ -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, -- 2.34.1