|
From: <sv...@va...> - 2011-03-04 17:11:56
|
Author: weidendo
Date: 2011-03-04 17:11:35 +0000 (Fri, 04 Mar 2011)
New Revision: 11581
Log:
Quick fix to always correctly update <passed> in setup_bbcc
Modified:
trunk/callgrind/bbcc.c
Modified: trunk/callgrind/bbcc.c
===================================================================
--- trunk/callgrind/bbcc.c 2011-03-04 16:55:56 UTC (rev 11580)
+++ trunk/callgrind/bbcc.c 2011-03-04 17:11:35 UTC (rev 11581)
@@ -841,6 +841,8 @@
if (!skip && CLG_(current_state).nonskipped) {
/* a call from skipped to nonskipped */
CLG_(current_state).bbcc = CLG_(current_state).nonskipped;
+ /* FIXME: take the real passed count from shadow stack */
+ passed = CLG_(current_state).bbcc->bb->cjmp_count;
}
CLG_(push_call_stack)(CLG_(current_state).bbcc, passed,
bbcc, sp, skip);
|