]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Callgrind: make globals for log_* helpers visible outside sim.c
authorJosef Weidendorfer <Josef.Weidendorfer@gmx.de>
Wed, 9 Jun 2010 22:32:58 +0000 (22:32 +0000)
committerJosef Weidendorfer <Josef.Weidendorfer@gmx.de>
Wed, 9 Jun 2010 22:32:58 +0000 (22:32 +0000)
commitc2abab1f043e04a0af972ef5a619368c8d393453
tree30ca8bb8d351a75c8ebb1149fdd319ac91359415
parent4d34d8da4dd424f15e1e4025200e42bb34d23079
Callgrind: make globals for log_* helpers visible outside sim.c

At beginning of each BB, Callgrind inserts a call to setup_bbcc,
which (among a lot other things), sets global vars needed for
the log_* helpers called afterwards in this BB.

These globals, bb_base and cost_base, previously we static declared
and only visible in sim.c. Make them visible also in the rest of
callgrind to allow for log_* handlers outside sim.c.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11166
callgrind/bbcc.c
callgrind/global.h
callgrind/sim.c