state.c function bugfix
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Sun, 12 Mar 2006 20:46:06 +0000 (20:46 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Sun, 12 Mar 2006 20:46:06 +0000 (20:46 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1697 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/configure.in
ltt/branches/poly/lttv/lttv/state.c

index f17d60eba7e69b62a664872ae61770492bb42033..7c17a982268f7a71335e60ae4fcf5240ca4e745f 100644 (file)
@@ -23,7 +23,7 @@
 AC_PREREQ(2.57)
 AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
 #AC_WITH_LTDL  # not needed ?
-AM_INIT_AUTOMAKE(LinuxTraceToolkitViewer,0.8.31-11032006)
+AM_INIT_AUTOMAKE(LinuxTraceToolkitViewer,0.8.32-12032006)
 AM_CONFIG_HEADER(config.h)
 AM_PROG_LIBTOOL
 
index 07ecfc46603e30cd67d76d11d5f141fb182e945e..1eb3cf3c1e19a630c766355ae438bcf1121e1290 100644 (file)
@@ -1416,8 +1416,7 @@ static void push_function(LttvTracefileState *tfs, guint64 funcptr)
     
   new_func = &g_array_index(process->user_stack, guint64, depth);
        *new_func = funcptr;
-  process->current_function = 
-               g_array_index(process->user_stack, guint64, depth - 1);
+  process->current_function = funcptr;
 }
 
 static void pop_function(LttvTracefileState *tfs, guint64 funcptr)
@@ -1426,7 +1425,6 @@ static void pop_function(LttvTracefileState *tfs, guint64 funcptr)
   LttvTraceState *ts = (LttvTraceState*)tfs->parent.t_context;
   LttvProcessState *process = ts->running_process[cpu];
 
-  guint depth = process->user_stack->len;
   if(process->current_function != funcptr){
     g_info("Different functions (%lu.%09lu): ignore it\n",
         tfs->parent.timestamp.tv_sec, tfs->parent.timestamp.tv_nsec);
@@ -1439,6 +1437,7 @@ static void pop_function(LttvTracefileState *tfs, guint64 funcptr)
                    g_quark_to_string(process->state->s));
     return;
   }
+  guint depth = process->user_stack->len;
 
   if(depth == 0){
     g_info("Trying to pop last function on stack (%lu.%09lu): ignore it\n",
This page took 0.027253 seconds and 4 git commands to generate.