Fixed very minor bug with profiling.  With cachegrind, if you specified
--profile=yes without having built it for profiling (by #including
vg_profile.c) it gave a "pushcc" panic, instead of a nice explanation.

This is because I assumed no profiling events would be pushed/popped before
VG_(init_profiling)() was called.  But cachegrind malloc's some memory in
post_clo_init(), which takes place before VG_(init_profiling)().

So I changed the dummy pushcc/popcc to give the nice error message, instead of
uninformatively panicking.

MERGE TO STABLE


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1451 a5019735-40e9-0310-863c-91ae7b9d1cf9
1 file changed